|
|
@@ -102,6 +102,27 @@ class InternalApiController extends BaseLikeAdminController
|
|
|
if(!empty($params['pay_way']??'')) $params['extra']['pay_way'] = $params['pay_way'];
|
|
|
$payNotifyLogic = PayNotifyLogic::handle('goods', $params['sn'], $params['extra']??[]);
|
|
|
if($payNotifyLogic === true){
|
|
|
+ // 用户下单后,给订单运营专员(配置固定ID)发送公众号提醒(订单信息)
|
|
|
+ $order = RechargeOrder::where('sn', $params['sn'])
|
|
|
+ ->where('payment_type','IN',[0,1])
|
|
|
+ ->where('pay_status','=',1)
|
|
|
+ ->findOrEmpty();
|
|
|
+ if(!$order->isEmpty()){
|
|
|
+ $workDetail = ServiceWork::findOrEmpty($order->work_id);
|
|
|
+ if(!$workDetail->isEmpty()){
|
|
|
+ event('Notice', [
|
|
|
+ 'scene_id' => 100,
|
|
|
+ 'params' => [
|
|
|
+ 'user_id' => 0,
|
|
|
+ 'order_id' => $workDetail['id'],
|
|
|
+ 'thing3' => $workDetail['title'],
|
|
|
+ 'time6' => $workDetail['appointment_time'],
|
|
|
+ 'phone_number8' => asteriskString($workDetail['mobile']),
|
|
|
+ 'thing5' => (iconv_strlen($workDetail['address'])>15)?(mb_substr($workDetail['address'],0,15,'UTF-8').'...'):$workDetail['address'],
|
|
|
+ ]
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+ }
|
|
|
return $this->success('内部支付完成', [], 0, 1);
|
|
|
}
|
|
|
throw new \Exception($payNotifyLogic,404);
|