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

支付成功通知管理员

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