作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

商品留言

... ... @@ -470,13 +470,14 @@ class Goods extends Api
// 发送模板消息
$send_data = array(
"first" => '您好,您有一个未处理的客服留言!',
"keyword1" => $param['content'],
"keyword2" => $param['mobile'],
"keyword3" => date('Y年m月d日 H:i',time()),
"keyword1" => '客服留言',
"keyword2" => $param['content'],
"keyword3" => $this->auth->nickname,
"keyword4" => $param['mobile'],
"remark" => ['请尽快处理!','#FF0000'],
);
$url = $this->request->root(true).'/admininfo.php/index/login';
(new \app\index\controller\Ajax)->wxsendmessage(config('option.examine_openid'),$send_data,config('option.template')['examine'],$url);
(new \app\index\controller\Ajax)->wxsendmessage(config('option.examine_openid'),$send_data,config('option.template')['service_msg'],$url);
Db::commit();
} catch (PDOException $e) {
Db::rollback();
... ...
... ... @@ -19,6 +19,7 @@ return [
// 'feedback' => ' tTdwXY1ZtF2IMUXPf4_5XyeZLFO90Ojseg_9LoE8sr8', // 意见反馈通知
'store_pass' => 'wKN6cG79pO92wrLifc_dMgmP_UIrsGeG-bDdWE8bYjo', // 商家审核结果通知
'pay_success' => 'wKN6cG79pO92wrLifc_dMgmP_UIrsGeG-bDdWE8bYjo', // 支付成功通知
'service_msg' => 'NVQBqcRiZDjd3v-WoTVqAdoWVMXAWuvflKOQWQEHDKg', // 给客服留言
],
'examine_openid' => 'otlkQ0l4L3wsmz8dhDIbHJQVJnI8', //审核管理员
'sms' => [
... ...