|
|
@@ -252,20 +252,20 @@ class GhsDeliveryOrderClass extends BaseClass
|
|
|
} else {
|
|
|
if (isset($ret['msg'])) {
|
|
|
Yii::error("ghs-orderId={$orderId}, 创建跑腿失败:" . $ret['msg']);
|
|
|
- noticeUtil::push("ghs-orderId={$orderId}, 创建跑腿失败:" . $ret['msg']);
|
|
|
+ noticeUtil::push("ghs-orderId={$orderId}, shopId={$shopId}, 创建跑腿失败:" . $ret['msg']);
|
|
|
self::sendAppNotice($shopId, $orderId, "ghs-orderId={$orderId}, 创建跑腿失败:" . $ret['msg']); // 发 App 通知
|
|
|
return ConsumerInterface::MSG_REJECT;
|
|
|
}
|
|
|
|
|
|
Yii::error("ghs-orderId={$orderId}, 创建跑腿失败");
|
|
|
- noticeUtil::push("ghs-orderId={$orderId}, 创建跑腿失败");
|
|
|
+ noticeUtil::push("ghs-orderId={$orderId}, shopId={$shopId}, 创建跑腿失败");
|
|
|
self::sendAppNotice($shopId, $orderId, '创建跑腿失败'); // 发 App 通知
|
|
|
return ConsumerInterface::MSG_REJECT;
|
|
|
}
|
|
|
} catch (\Exception $e) {
|
|
|
$orderId = $data['orderId'];
|
|
|
Yii::error("ghs-orderId={$orderId}, 创建跑腿失败:" . $e->getMessage());
|
|
|
- noticeUtil::push("ghs-orderId={$orderId}, 创建跑腿失败:" . $e->getMessage());
|
|
|
+ noticeUtil::push("ghs-orderId={$orderId}, shopId={$shopId}, 创建跑腿失败:" . $e->getMessage());
|
|
|
$shopId = $data['shopId'];
|
|
|
// 发 App 通知
|
|
|
self::sendAppNotice($shopId, $orderId, $e->getMessage());
|
|
|
@@ -278,7 +278,7 @@ class GhsDeliveryOrderClass extends BaseClass
|
|
|
public static function sendAppNotice($shopId, $orderId, $msg)
|
|
|
{
|
|
|
$title = '发跑腿失败';
|
|
|
- $msg = "批发订单:{$orderId}, 创建跑腿失败:" . $msg;
|
|
|
+ $msg = "批发订单:{$orderId}, shopId={$shopId}, 创建跑腿失败:" . $msg;
|
|
|
$allDevices = \bizGhs\device\classes\GhsDeviceClass::getAllByCondition(['shopId' => $shopId, 'status' => 1]);
|
|
|
$cids = array_column($allDevices, 'clientId');
|
|
|
$push = new push('ghs', push::MSG_TYPE_WORK);
|