|
|
@@ -5,6 +5,7 @@ namespace common\components;
|
|
|
use biz\hb\classes\HbClass;
|
|
|
use biz\recharge\classes\RechargeClass;
|
|
|
use biz\renew\classes\RenewClass;
|
|
|
+use biz\shop\classes\ShopAdminClass;
|
|
|
use biz\shop\classes\ShopExtClass;
|
|
|
use biz\wx\classes\WxMessageClass;
|
|
|
use bizHd\order\classes\OrderClass;
|
|
|
@@ -66,6 +67,23 @@ class payUtil
|
|
|
$curl->get($url);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //app消息通知
|
|
|
+ $shopId = $order->shopId ?? 0;
|
|
|
+ $adminList = ShopAdminClass::getRemainAdmin($shopId);
|
|
|
+ if (empty($adminList)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $customName = $order->customName ?? '';
|
|
|
+ $actPrice = $order->actPrice ?? 0;
|
|
|
+ foreach ($adminList as $admin) {
|
|
|
+ $clientId = $admin['clientId'] ?? '';
|
|
|
+ if (empty($clientId)) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ $adminId = $admin['id'] ?? 0;
|
|
|
+ pushNotice::push($adminId, $clientId, '新订单通知', $customName . '下单' . $actPrice . '元');
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
case dict::getDict('capitalType', 'hdPurchaseClear', 'id'):
|