|
|
@@ -16,7 +16,6 @@ class MerchantAssetClass extends BaseClass
|
|
|
//增加客户数和粉丝数 shish 2019.9.7
|
|
|
public static function addUser($merchantId, $subscribe, $add = false)
|
|
|
{
|
|
|
- Yii::info('mmmmm merchantId:'.$merchantId);
|
|
|
$asset = self::getByMerchantId($merchantId, true);
|
|
|
if ($subscribe == 1) {
|
|
|
if ($add) {
|
|
|
@@ -39,8 +38,9 @@ class MerchantAssetClass extends BaseClass
|
|
|
$asset = self::getByMerchantId($merchantId, true);
|
|
|
$asset->totalFans -= 1;
|
|
|
$asset->save();
|
|
|
- //每日统计数量减少
|
|
|
- StatUserClass::decreaseOneFans($merchantId, $asset);
|
|
|
+ //粉丝数减少
|
|
|
+ StatUserClass::decreaseFans($merchantId, $asset);
|
|
|
+ StatUserMonthClass::decreaseFans($merchantId, $asset);
|
|
|
}
|
|
|
|
|
|
//获取商家资产信息 shish 2019.9.7
|