|
|
@@ -607,7 +607,6 @@ class WxMessageClass extends BaseClass
|
|
|
//供货商客户领取了新人红包 ssh 20211027
|
|
|
public static function ghsCustomGetNewGiftInform($shop, $custom)
|
|
|
{
|
|
|
- $shopId = $shop->id ?? 0;
|
|
|
$ptStyle = $shop->ptStyle ?? 0;
|
|
|
$wxBase = WxOpenClass::getWxBase();
|
|
|
$wx = $wxBase[$ptStyle] ?? [];
|
|
|
@@ -620,7 +619,7 @@ class WxMessageClass extends BaseClass
|
|
|
$customId = $custom['id'] ?? 0;
|
|
|
$customName = $custom['name'] ?? '';
|
|
|
|
|
|
- $adminList = ShopAdminClass::getRemainAdmin($shopId);
|
|
|
+ $adminList = ShopAdminClass::getRemainAdmin($shop);
|
|
|
if (empty($adminList)) {
|
|
|
return false;
|
|
|
}
|
|
|
@@ -650,7 +649,6 @@ class WxMessageClass extends BaseClass
|
|
|
//供货商的客户介绍新客并且下单,获得红包通知商家 ssh 20211027
|
|
|
public static function ghsCustomTjGetGiftInform($shop, $custom, $beTjCustom)
|
|
|
{
|
|
|
- $shopId = $shop->id ?? 0;
|
|
|
$ptStyle = $shop->ptStyle ?? 0;
|
|
|
$wxBase = WxOpenClass::getWxBase();
|
|
|
$wx = $wxBase[$ptStyle] ?? [];
|
|
|
@@ -663,7 +661,7 @@ class WxMessageClass extends BaseClass
|
|
|
$customId = $custom->id ?? 0;
|
|
|
$customName = $custom->name ?? '';
|
|
|
$beTjCustomName = $beTjCustom->name ?? '';
|
|
|
- $adminList = ShopAdminClass::getRemainAdmin($shopId);
|
|
|
+ $adminList = ShopAdminClass::getRemainAdmin($shop);
|
|
|
if (empty($adminList)) {
|
|
|
return false;
|
|
|
}
|
|
|
@@ -693,7 +691,6 @@ class WxMessageClass extends BaseClass
|
|
|
//花店推荐供货商客户获得红包 ssh 20211027
|
|
|
public static function hdTjGhsCustomGetGiftInform($shop, $ghs, $beTjCustom)
|
|
|
{
|
|
|
- $shopId = $shop->id ?? 0;
|
|
|
$ptStyle = $shop->ptStyle ?? 0;
|
|
|
$wxBase = WxOpenClass::getWxBase();
|
|
|
$wx = $wxBase[$ptStyle] ?? [];
|
|
|
@@ -706,7 +703,7 @@ class WxMessageClass extends BaseClass
|
|
|
$beTjCustomName = $beTjCustom->name ?? '';
|
|
|
$ghsName = $ghs->name ?? '';
|
|
|
|
|
|
- $adminList = ShopAdminClass::getRemainAdmin($shopId);
|
|
|
+ $adminList = ShopAdminClass::getRemainAdmin($shop);
|
|
|
if (empty($adminList)) {
|
|
|
return false;
|
|
|
}
|
|
|
@@ -736,7 +733,6 @@ class WxMessageClass extends BaseClass
|
|
|
//供应商新客户通知 ssh 20210909
|
|
|
public static function newGhsCustomInform($shop, $custom, $introduce)
|
|
|
{
|
|
|
- $shopId = $shop['id'] ?? 0;
|
|
|
$ptStyle = $shop['ptStyle'] ?? 0;
|
|
|
$wxBase = WxOpenClass::getWxBase();
|
|
|
$wx = $wxBase[$ptStyle] ?? [];
|
|
|
@@ -749,7 +745,7 @@ class WxMessageClass extends BaseClass
|
|
|
$customId = $custom['id'] ?? 0;
|
|
|
$customName = $custom['name'] ?? '';
|
|
|
$date = date("Y-m-d H:i:s");
|
|
|
- $adminList = ShopAdminClass::getRemainAdmin($shopId);
|
|
|
+ $adminList = ShopAdminClass::getRemainAdmin($shop);
|
|
|
if (empty($adminList)) {
|
|
|
return false;
|
|
|
}
|
|
|
@@ -808,7 +804,7 @@ class WxMessageClass extends BaseClass
|
|
|
if (empty($tempId)) {
|
|
|
return false;
|
|
|
}
|
|
|
- $adminList = ShopAdminClass::getRemainAdmin($shopId);
|
|
|
+ $adminList = ShopAdminClass::getRemainAdmin($shopInfo);
|
|
|
if (empty($adminList)) {
|
|
|
return false;
|
|
|
}
|