|
|
@@ -276,7 +276,7 @@ class WxMessageClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
//零售清算欠款通知供货商 shish 20210531
|
|
|
- public static function clearIncome($shop, $order, $custom)
|
|
|
+ public static function clearInform($shop, $order, $custom)
|
|
|
{
|
|
|
$shopId = $shop->id;
|
|
|
$ptStyle = $shop->ptStyle;
|
|
|
@@ -288,16 +288,15 @@ class WxMessageClass extends BaseClass
|
|
|
if (empty($tempId)) {
|
|
|
return false;
|
|
|
}
|
|
|
- $orderId = $order->id;
|
|
|
$actPrice = $order->actPrice;
|
|
|
$name = $custom->name ?? '';
|
|
|
+ $customId = $custom->id;
|
|
|
$adminList = ShopAdminClass::getRemainAdmin($shopId);
|
|
|
foreach ($adminList as $admin) {
|
|
|
if (isset($admin['subscribe']) == false || $admin['subscribe'] == 0) {
|
|
|
continue;
|
|
|
}
|
|
|
$openId = isset($admin['openId']) ? $admin['openId'] : '';
|
|
|
-
|
|
|
$data = [
|
|
|
"touser" => $openId,
|
|
|
"template_id" => $tempId,
|
|
|
@@ -311,7 +310,7 @@ class WxMessageClass extends BaseClass
|
|
|
]
|
|
|
];
|
|
|
$data['miniprogram']['appid'] = $wx['miniAppId'];
|
|
|
- $data['miniprogram']['pagepath'] = 'pagesPurchase/purDetails?id=' . $orderId;
|
|
|
+ $data['miniprogram']['pagepath'] = 'pagesArrears/details?id=' . $customId;
|
|
|
|
|
|
wxUtil::sendTaskInform($data, $wx, $ptStyle);
|
|
|
}
|