...
|
...
|
@@ -311,6 +311,17 @@ class Ajax extends Frontend |
|
|
}
|
|
|
if ($successful) {
|
|
|
$order->updatePayStatus($notify->transaction_id);
|
|
|
// 发送模板消息
|
|
|
$send_data = array(
|
|
|
"first" => '您好,有用户订单支付成功!',
|
|
|
"keyword1" => $order['order_no'],
|
|
|
"keyword2" => $order['goods'][0]['goods_name'],
|
|
|
"keyword3" => $order['pay_price'],
|
|
|
"keyword4" => date('Y年m月d日 H:i',time()),
|
|
|
"remark" => ['点击查看!','#FF0000'],
|
|
|
);
|
|
|
$url = $this->request->root(true).'/admininfo.php/index/login';
|
|
|
$this->wxsendmessage(config('option.examine_openid'),$send_data,config('option.template')['pay_success'],$url);
|
|
|
}
|
|
|
|
|
|
return true; // 返回处理完成
|
...
|
...
|
|