作者 lyh

gx

@@ -92,7 +92,7 @@ class InquiryInfoController extends BaseController @@ -92,7 +92,7 @@ class InquiryInfoController extends BaseController
92 92
93 /** 93 /**
94 * @param InquiryInfoLogic $inquiryInfoLogic 94 * @param InquiryInfoLogic $inquiryInfoLogic
95 - * @remark :执行逻辑删除 95 + * @remark :删除
96 * @name :del 96 * @name :del
97 * @author :lyh 97 * @author :lyh
98 * @method :post 98 * @method :post
@@ -103,7 +103,6 @@ class InquiryInfoController extends BaseController @@ -103,7 +103,6 @@ class InquiryInfoController extends BaseController
103 'id'=>'required',// 103 'id'=>'required',//
104 ],[ 104 ],[
105 'id.required' => '名称不能为空', 105 'id.required' => '名称不能为空',
106 -  
107 ]); 106 ]);
108 $inquiryInfoLogic->inquiryInfoDel(); 107 $inquiryInfoLogic->inquiryInfoDel();
109 $this->response('success'); 108 $this->response('success');
@@ -82,10 +82,11 @@ class InquiryInfoLogic extends BaseLogic @@ -82,10 +82,11 @@ class InquiryInfoLogic extends BaseLogic
82 * @method :post 82 * @method :post
83 * @time :2023/7/12 9:22 83 * @time :2023/7/12 9:22
84 */ 84 */
85 - public function inquirySave(){ 85 + public function inquirySave($status = 3){
86 try { 86 try {
87 - $xp_id = $this->inquiryInfoSave(); 87 + $xp_id = $this->inquiryInfoSave($status);
88 $this->inquiryUserSave($xp_id); 88 $this->inquiryUserSave($xp_id);
  89 + //TODO::转发询盘
89 }catch (\Exception $e){ 90 }catch (\Exception $e){
90 $this->fail('error'); 91 $this->fail('error');
91 } 92 }
@@ -99,7 +100,7 @@ class InquiryInfoLogic extends BaseLogic @@ -99,7 +100,7 @@ class InquiryInfoLogic extends BaseLogic
99 * @method :post 100 * @method :post
100 * @time :2023/7/12 11:12 101 * @time :2023/7/12 11:12
101 */ 102 */
102 - public function inquiryInfoSave(){ 103 + public function inquiryInfoSave($status = 3){
103 //组装数据 104 //组装数据
104 $param = [ 105 $param = [
105 'name'=>$this->param['name'], 106 'name'=>$this->param['name'],
@@ -109,6 +110,7 @@ class InquiryInfoLogic extends BaseLogic @@ -109,6 +110,7 @@ class InquiryInfoLogic extends BaseLogic
109 'ip_area'=>$this->param['ip_area'], 110 'ip_area'=>$this->param['ip_area'],
110 'message'=>$this->param['message'], 111 'message'=>$this->param['message'],
111 'type'=>$this->param['type'], 112 'type'=>$this->param['type'],
  113 + 'status'=>$status,
112 'created_at'=>date('Y-m-d H:i:s'), 114 'created_at'=>date('Y-m-d H:i:s'),
113 'updated_at'=>date('Y-m-d H:i:s'), 115 'updated_at'=>date('Y-m-d H:i:s'),
114 ]; 116 ];
@@ -195,7 +197,7 @@ class InquiryInfoLogic extends BaseLogic @@ -195,7 +197,7 @@ class InquiryInfoLogic extends BaseLogic
195 'forward_url'=>$row[7], 197 'forward_url'=>$row[7],
196 'delay'=>$row[8], 198 'delay'=>$row[8],
197 ]; 199 ];
198 - $this->inquirySave(); 200 + $this->inquirySave(0);
199 return $this->success(); 201 return $this->success();
200 } 202 }
201 203