|
|
@@ -3,8 +3,10 @@
|
|
|
namespace biz\wx\classes;
|
|
|
|
|
|
use biz\base\classes\BaseClass;
|
|
|
+use biz\ghs\classes\GhsClass;
|
|
|
use biz\shop\classes\ShopAdminClass;
|
|
|
use biz\shop\classes\ShopClass;
|
|
|
+use bizGhs\custom\classes\CustomClass;
|
|
|
use common\components\dict;
|
|
|
use common\components\noticeUtil;
|
|
|
use common\components\util;
|
|
|
@@ -655,12 +657,22 @@ class WxMessageClass extends BaseClass
|
|
|
}
|
|
|
|
|
|
//客户充值通知供应商 shish 20211005
|
|
|
- public static function customRechargeInformGhs($recharge, $hbInfo)
|
|
|
+ public static function customRechargeInformGhs($recharge)
|
|
|
{
|
|
|
$amount = $recharge->amount ?? 0;
|
|
|
- $shopId = $hbInfo->ghsShopId ?? 0;
|
|
|
- $customName = $hbInfo->customName ?? '';
|
|
|
- $customId = $hbInfo->customId ?? 0;
|
|
|
+ $hbId = $recharge->hbId ?? 0;
|
|
|
+ $ghsId = $recharge->ghsId ?? 0;
|
|
|
+ if (empty($ghsId)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (!empty($hbId)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ $ghsInfo = GhsClass::getById($ghsId, true);
|
|
|
+ $shopId = $ghsInfo->ghsShopId ?? 0;
|
|
|
+ $customId = $ghsInfo->customId ?? 0;
|
|
|
+ $customInfo = CustomClass::getById($customId, true);
|
|
|
+ $customName = $customInfo->name ?? '';
|
|
|
$shopInfo = ShopClass::getById($shopId, true);
|
|
|
$ptStyle = $shopInfo->ptStyle ?? 0;
|
|
|
$wxBase = WxOpenClass::getWxBase();
|