feat: 收益全额直入商城余额、存量结转与奖项名称全局规范化对齐
这个提交包含在:
@@ -310,6 +310,10 @@ class PartnerRewardService
|
||||
public static function account($order, $buyerId, $userId, $type, $role, $amount, $base, $ext = [])
|
||||
{
|
||||
$orderId = is_array($order) || $order instanceof \think\Model ? ($order['id'] ?? 0) : intval($order);
|
||||
$walletType = PartnerConfig::rewardWalletType();
|
||||
if (!isset($ext['wallet_type'])) {
|
||||
$ext['wallet_type'] = $walletType;
|
||||
}
|
||||
$row = self::write([
|
||||
'order_id' => $orderId,
|
||||
'buyer_id' => $buyerId,
|
||||
@@ -322,7 +326,6 @@ class PartnerRewardService
|
||||
'status' => 1,
|
||||
]);
|
||||
if ($row && self::$lastWriteCreated && (float) $amount > 0 && $userId > 0 && $row->status == 1 && in_array($type, PartnerConfig::instantTypes())) {
|
||||
$walletType = PartnerConfig::rewardWalletType();
|
||||
Wallet::change($userId, $walletType, $amount, $type, [
|
||||
'partner_reward_id' => $row->id,
|
||||
'order_id' => $orderId,
|
||||
|
||||
在新工单中引用
屏蔽一个用户