Qimall的资产板块对资产智能分析统计和具体筛选,资产分有余额、积分、佣金。一般情况会员产生的资产记录都会在资产里面显示,可以筛选出单个会员的资产流水明细
/*
* 余额
* $is_frozen 是否冻结 bool ture/false
* $wallet_type 钱包类型 'wallet_type' => UserWalletService::WALLET_TYPE_BALANCE,
* $money 金额 正数是加,负数是减
* $desc 描述
* $source_table 来源
* $source_table_id 来源ID
* $from_type 来源类型,h5等前端需要展示 是常量
* $capital_type 来源类别 h5等前端需要展示 是常量
*/
$insert_wallet [] = ['mall_id' => $data['mall_id'], 'user_id' => $data['user_id'],
'is_frozen' => '',
'wallet_type' => '',
'money' => '',
'desc' => '',
'source_table' => '',
'source_table_id' => '',
'from_type' => '',
'capital_type' => '',
];
$res = UserWalletService::batchHandleByQueue($insert_wallet);
if ($res === false) return $this->error(UserWallet::getStaticError());
/*
* 余额
* $is_frozen 是否冻结 bool ture/false
* $wallet_type 钱包类型 'wallet_type' => UserWalletService::WALLET_TYPE_SCORE,
* $money 金额 正数是加,负数是减
* $desc 描述
* $source_table 来源
* $source_table_id 来源ID
* $from_type 来源类型,h5等前端需要展示 是常量
* $capital_type 来源类别 h5等前端需要展示 是常量
*/
$insert_wallet [] = ['mall_id' => $data['mall_id'], 'user_id' => $data['user_id'],
'is_frozen' => '',
'wallet_type' => '',
'money' => '',
'desc' => '',
'source_table' => '',
'source_table_id' => '',
'from_type' => '',
'capital_type' => '',
];
$res = UserWalletService::batchHandleByQueue($insert_wallet);
if ($res === false) return $this->error(UserWallet::getStaticError());