|
|
@@ -204,17 +204,6 @@ class WxMessageClass extends BaseClass
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- $needNotice = false;
|
|
|
- if (getenv('YII_ENV') == 'production') {
|
|
|
- if ($shop->mainId == 60) {
|
|
|
- $needNotice = true;
|
|
|
- }
|
|
|
- } else {
|
|
|
- if ($shop->mainId == 644) {
|
|
|
- $needNotice = true;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
foreach ($adminList as $admin) {
|
|
|
$openId = isset($admin['openId']) ? $admin['openId'] : '';
|
|
|
if ($ptStyle == dict::getDict('ptStyle', 'ghs')) {
|
|
|
@@ -235,14 +224,7 @@ class WxMessageClass extends BaseClass
|
|
|
];
|
|
|
$data['miniprogram']['appid'] = $wx['miniAppId'];
|
|
|
$data['miniprogram']['pagepath'] = 'pagesOrder/detail?id=' . $orderId;
|
|
|
- $ret = wxUtil::sendTaskInform($data, $wx, $ptStyle);
|
|
|
-
|
|
|
- $errCode = $ret->errcode ?? '';
|
|
|
- $errMsg = $ret->errmsg ?? '';
|
|
|
- $adminName = $admin['name'] ?? '';
|
|
|
- if ($needNotice == true) {
|
|
|
- noticeUtil::push("{$adminName} 已通知,{$errCode} {$errMsg}", '15280215347');
|
|
|
- }
|
|
|
+ wxUtil::sendTaskInform($data, $wx, $ptStyle);
|
|
|
}
|
|
|
}
|
|
|
|