添加网站文件

This commit is contained in:
2025-12-22 13:59:40 +08:00
commit 117aaf83d1
19468 changed files with 2111999 additions and 0 deletions

View File

@@ -0,0 +1,73 @@
<?php
namespace app\admin\controller;
use app\admin\logic\OpLogic;
use think\Db;
use app\admin\logic\UserLogic;
class Record extends Admin{
//获取线索记录列表
public function lists(){
if($this->request->isAjax()){
$post = $this->request->get();
$this->_success('获取数据成功',UserLogic::Record($post));
}
return $this->fetch();
}
//增加线索跟进人信息
public function add(){
if($this->request->isAjax()){
$post = $this->request->post();
$get = $this->request->get();
$item=Db::name('goods_stay_time')->where('id',$get['id'])->find();
$user=Db::name('user')->where('id',$item['uid'])->find();
if($user['mobile']==''){
$this->_error('访问信息不能为空');
}else{
$data=[
'show'=>$post['remark'],
'add_time'=>time(),
'phone'=>$user['mobile'],
'stour_id'=>$get['id'],
'admin_id'=>$this->admin_id
];
$add=Db::name('goods_add_time')->data($data)->insert();
if($add){
$this->_success('增加记录成功');
}else{
$this->_error('增加记录失败');
}
}
}
return $this->fetch();
}
//查看订单的线索
public function info(){
if($this->request->isAjax()){
$postdd = $this->request->get();
$this->_success('获取数据成功',UserLogic::goods_info($postdd));
}
$post = $this->request->get();
$item=Db::name('goods_stay_time')->where('id',$post['id'])->find();
$user=Db::name('user')->where('id',$item['uid'])->find();
$this->assign('phone',$user['mobile']);
return $this->fetch();
}
}