Browse Source

跑腿日志

shish 11 months ago
parent
commit
a954d0271c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app-hd/controllers/IntraCityController.php

+ 3 - 1
app-hd/controllers/IntraCityController.php

@@ -470,6 +470,8 @@ class IntraCityController extends BaseController
             } else {
                 noticeUtil::push("门店 -- " . $this->mainId . ",订单创建失败:" . json_encode($result));
                 Yii::error("订单创建失败:" . ($result['errmsg'] ?? '未知错误'), 'intracity');
+                $errorMsg = $result['errmsg'] ?? '';
+                noticeUtil::push("跑腿单创建失败:" . $errorMsg, '15280215347');
                 util::fail('提交失败,请确认余额是否充足');
             }
         } catch (\Exception $e) {
@@ -754,7 +756,7 @@ class IntraCityController extends BaseController
             if ($msg != '') { // $msg 不为空,则发通知
                 $order = OrderClass::getById($orderId, true, 'id, shopId, customName, sendNum');
                 $shop = ShopClass::getById($order->shopId, true, 'id, ptStyle, mainId');
-                $result = $msg .  $order->sendNum . ')';
+                $result = $msg . $order->sendNum . ')';
                 WxMessageClass::expressErrorInform($shop, $order->customName, $orderId, $result);
             }
             $re = $eo->save();