...
|
...
|
@@ -165,6 +165,29 @@ if (!function_exists('getOrderSn')) { |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if(!function_exists('OrderSendMessage')){
|
|
|
/**
|
|
|
* 发送模板消息
|
|
|
* @return void
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
function OrderSendMessage($order_id){
|
|
|
$order=\think\Db::name("order")->find($order_id);
|
|
|
$wxxcxpush=new WxxcxPush();
|
|
|
$user=new User();
|
|
|
$user=$user->find($order['user_id']);
|
|
|
$driver=new \app\admin\model\Driver();
|
|
|
$driver=$driver->find($order['driver_id']);
|
|
|
$driver_user=$user->find($driver['user_id']);
|
|
|
$res=$wxxcxpush->Message($driver_user['wx_xcx_openid'],$order_id);
|
|
|
$res=$wxxcxpush->Message($user['wx_xcx_openid'],$order_id);
|
|
|
if ($res !== false) {
|
|
|
return $res;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if(!function_exists('beingPushed')){
|
...
|
...
|
|