Commit 83d7eb9f authored by zhuwei's avatar zhuwei

进场对客户短信提醒变量短连接

parent f3e46f75
...@@ -136,7 +136,7 @@ class OrderLog extends Basic ...@@ -136,7 +136,7 @@ class OrderLog extends Basic
$push_client->record((int)$params["report_id"], (int)$params["order_id"], 0, '', (int)$this->agentId); $push_client->record((int)$params["report_id"], (int)$params["order_id"], 0, '', (int)$this->agentId);
//对客户发送短信通知 7151 //对客户发送短信通知 7151
$this->sendSMSForUser($params["reception_name"],$params["report_id"]); $this->sendSMSForUser($params["report_id"]);
return $this->response("200", "request success", []); return $this->response("200", "request success", []);
} else { } else {
return $this->response("101", "request faild"); return $this->response("101", "request faild");
...@@ -147,18 +147,15 @@ class OrderLog extends Basic ...@@ -147,18 +147,15 @@ class OrderLog extends Basic
/** /**
* 对客户发送短信通知 * 对客户发送短信通知
* @param $agent_name
* @param $report_id * @param $report_id
* @return bool * @return bool
*/ */
public function sendSMSForUser($report_id){
public function sendSMSForUser($agent_name,$report_id){
$report = new OReportModel(); $report = new OReportModel();
$messageUntil = new MessageUntils(); $messageUntil = new MessageUntils();
$user_phone = $report->getFieldValue('user_phone', ['id'=>$report_id]); $user_phone = $report->getFieldValue('user_phone', ['id'=>$report_id]);
$data = [$agent_name]; $result = $messageUntil->sendSMSForUser($user_phone,[SMS_TEMPLATE_URL],'415209');
$result = $messageUntil->sendSMSForUser($user_phone,$data,'415209');
if ($result == 'true') { if ($result == 'true') {
return true; return true;
} else { } else {
......
...@@ -26,6 +26,8 @@ define('WEEK_WORK_IMG', IMAGES_URL . 'static'. DS . 'week_work_img/'); //周报 ...@@ -26,6 +26,8 @@ define('WEEK_WORK_IMG', IMAGES_URL . 'static'. DS . 'week_work_img/'); //周报
define('PHONE_VOICE', ROOT_PATH.'public'.DS.'static'.DS.'voice'); //录音绝对路径 define('PHONE_VOICE', ROOT_PATH.'public'.DS.'static'.DS.'voice'); //录音绝对路径
define('SHOP_IMAGE_DEPOT_URL', IMAGES_URL . 'static'. DS . 'shop_image_depot/'); //C端商铺随机图片地址 define('SHOP_IMAGE_DEPOT_URL', IMAGES_URL . 'static'. DS . 'shop_image_depot/'); //C端商铺随机图片地址
define('SMS_TEMPLATE_URL', 'https://dwz.cn/fUipTngy'); //进场对客户短信提醒变量短连接
return [ return [
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | 应用设置 // | 应用设置
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment