移除商品兑换需要流水
This commit is contained in:
@@ -77,10 +77,6 @@ final class MallBonusGrantPush
|
||||
|
||||
$start = gmdate('Y-m-d\TH:i:s\Z', strtotime(strval($order->start_time)));
|
||||
$end = gmdate('Y-m-d\TH:i:s\Z', strtotime(strval($order->end_time)));
|
||||
$multiplier = intval($order->multiplier ?? 0);
|
||||
if ($multiplier <= 0) {
|
||||
$multiplier = 1;
|
||||
}
|
||||
|
||||
$payload = [
|
||||
'merchant_code' => $merchantCode,
|
||||
@@ -96,8 +92,6 @@ final class MallBonusGrantPush
|
||||
'member_inbox_message' => 'Congratulations! You received an angpow.',
|
||||
'category' => strval($item->category ?? ''),
|
||||
'category_title' => strval($item->category_title ?? ''),
|
||||
'one_time_turnover' => 'yes',
|
||||
'multiplier' => $multiplier,
|
||||
],
|
||||
],
|
||||
'currency_visual' => [
|
||||
|
||||
@@ -29,7 +29,6 @@ class MallItem extends Model
|
||||
'create_time' => 'integer',
|
||||
'update_time' => 'integer',
|
||||
'amount' => 'float',
|
||||
'multiplier' => 'integer',
|
||||
];
|
||||
|
||||
public function admin(): \think\model\relation\BelongsTo
|
||||
|
||||
@@ -16,7 +16,6 @@ use support\think\Model;
|
||||
* @property int $mall_item_id
|
||||
* @property int $points_cost
|
||||
* @property float $amount
|
||||
* @property int $multiplier
|
||||
* @property string $external_transaction_id
|
||||
* @property string $grant_status
|
||||
* @property string|null $fail_reason
|
||||
@@ -58,7 +57,6 @@ class MallOrder extends Model
|
||||
'update_time' => 'integer',
|
||||
'points_cost' => 'integer',
|
||||
'amount' => 'float',
|
||||
'multiplier' => 'integer',
|
||||
'retry_count' => 'integer',
|
||||
'mall_address_id' => 'integer',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user