|
|
@@ -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');
|