|
|
@@ -43,6 +43,18 @@ class MerchantAssetClass extends BaseClass
|
|
|
StatUserMonthClass::decreaseFans($merchantId, $asset);
|
|
|
}
|
|
|
|
|
|
+ //帐号合并减少客户数 shish 2020.5.13
|
|
|
+ public static function mergeToReduceUser($merchantId)
|
|
|
+ {
|
|
|
+ $asset = self::getByMerchantId($merchantId, true);
|
|
|
+ $asset->totalUser -= 1;
|
|
|
+ $asset->save();
|
|
|
+ //每天客户减少
|
|
|
+ StatUserClass::reduceUser($merchantId, $asset);
|
|
|
+ //每月客户减少
|
|
|
+ StatUserMonthClass::reduceUser($merchantId, $asset);
|
|
|
+ }
|
|
|
+
|
|
|
//获取商家资产信息 shish 2019.9.7
|
|
|
public static function getByMerchantId($merchantId, $returnObj = false)
|
|
|
{
|