|
...
|
...
|
@@ -7,8 +7,6 @@ use App\Models\InquiryIP; |
|
|
|
use App\Models\Projects\InquiryInfo;
|
|
|
|
use App\Models\Projects\InquiryUser;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
use Illuminate\Console\Scheduling\Schedule;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :询盘中心
|
|
...
|
...
|
@@ -52,9 +50,6 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
* @time :2023/7/12 9:22
|
|
|
|
*/
|
|
|
|
public function inquirySave(){
|
|
|
|
$this->param['user_id'] = $this->manager['id'];
|
|
|
|
$this->param['user_name'] = $this->manager['name'];
|
|
|
|
$this->param['send_time'] = date('Y-m-d H:i:s',time() + $this->param['delay'] * 60 * 60) ;
|
|
|
|
$xp_id = $this->model->insertGetId($this->param);
|
|
|
|
if(!$xp_id){
|
|
|
|
$this->fail('error');
|
|
...
|
...
|
@@ -68,7 +63,7 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :逻辑删除
|
|
|
|
* @remark :删除
|
|
|
|
* @name :inquiryInfoDel
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
...
|
...
|
@@ -96,8 +91,7 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
* @time :2023/7/12 17:43
|
|
|
|
*/
|
|
|
|
public function inquiryForwardInfo(){
|
|
|
|
$inquiryUserModel = new InquiryUser();
|
|
|
|
$info = $inquiryUserModel->read(['xp_id'=>$this->param['id']]);
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
if($info === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
...
|
...
|
@@ -148,7 +142,6 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
* @time :2023/7/13 17:39
|
|
|
|
*/
|
|
|
|
public function forwardTime($xp_id){
|
|
|
|
$data = [];
|
|
|
|
//获取数据详情
|
|
|
|
$param = $this->model->read(['id'=>$xp_id]);
|
|
|
|
if($param['delay'] == 0){
|
|
...
|
...
|
@@ -159,7 +152,11 @@ class InquiryInfoLogic extends BaseLogic |
|
|
|
$this->inquiryForward($data);
|
|
|
|
}
|
|
|
|
//更新数据库,修改状态为已转发
|
|
|
|
$rs = $this->model->edit(['status'=>3],['id'=>$xp_id]);
|
|
|
|
$this->param['status'] = 3;
|
|
|
|
$this->param['user_id'] = $this->manager['id'];
|
|
|
|
$this->param['user_name'] = $this->manager['name'];
|
|
|
|
$this->param['send_time'] = date('Y-m-d H:i:s',time() + $param['delay'] * 60 * 60) ;
|
|
|
|
$rs = $this->model->edit($this->param,['id'=>$xp_id]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
...
|
...
|
|