shish 3 éve
szülő
commit
8599b7d66b
1 módosított fájl, 5 hozzáadás és 0 törlés
  1. 5 0
      app-hd/controllers/PurchaseController.php

+ 5 - 0
app-hd/controllers/PurchaseController.php

@@ -298,6 +298,11 @@ class PurchaseController extends BaseController
         //强制使用小程序的miniOpenId
         $openId = isset($this->admin) && !empty($this->admin) ? $this->admin->miniOpenId : '';
         if (empty($openId)) {
+            $currentShopId = $order->shopId ?? 0;
+            $currentShop = ShopClass::getById($currentShopId, true);
+            $currentShopName = $currentShop->merchantName . ' ' . $currentShop->shopName;
+            $currentMobile = $currentShop->mobile ?? '';
+            noticeUtil::push("花店采购时,发现没有openId,请跟进是否采购成功。{$currentShopName} {$currentMobile}", '15280215347');
             util::success(['hasError' => 1, 'hasNoMiniOpenId' => 1]);
         }
         $purchaseCapital = dict::getDict('capitalType', 'xhPurchase', 'id');