...
|
...
|
@@ -476,14 +476,14 @@ class Hot extends Api |
|
|
$res_msg = $msg_model->add($insert);
|
|
|
}
|
|
|
// 发送模板消息
|
|
|
// $send_data = array(
|
|
|
// "first" => '',
|
|
|
// 'keyword1' => '',
|
|
|
// "keyword2" => '',
|
|
|
// "keyword3" => date('Y-m-s',time()),
|
|
|
// "remark" => '',
|
|
|
// );
|
|
|
// $this->wxsendmessage('','','');
|
|
|
$send_data = array(
|
|
|
"first" => '您有一条新的消息',
|
|
|
'keyword1' => $param['content'] ? $param['content'] : '【图片消息】',
|
|
|
"keyword" => date('Y-m-s H:i:s',time()),
|
|
|
"remark" => '',
|
|
|
);
|
|
|
$openid = Db::name('third')->where('user_id',$this->auth->id)->value('openid');
|
|
|
$this->wxsendmessage($openid,$send_data,config('option.template')['msg']);
|
|
|
Db::commit();
|
|
|
} catch (PDOException $e) {
|
|
|
Db::rollback();
|
...
|
...
|
|