1.优化后台页面样式
2.优化统一订单中红利的状态和失败原因 3.移除项目中冗余代码和字段
This commit is contained in:
@@ -26,7 +26,7 @@ class Order extends Backend
|
||||
|
||||
protected array $withJoinTable = ['mallItem'];
|
||||
|
||||
protected string|array $quickSearchField = ['user_id', 'external_transaction_id', 'playx_transaction_id'];
|
||||
protected string|array $quickSearchField = ['user_id', 'external_transaction_id'];
|
||||
|
||||
protected string|array $indexField = [
|
||||
'id',
|
||||
@@ -38,7 +38,6 @@ class Order extends Backend
|
||||
'amount',
|
||||
'multiplier',
|
||||
'external_transaction_id',
|
||||
'playx_transaction_id',
|
||||
'grant_status',
|
||||
'fail_reason',
|
||||
'reject_reason',
|
||||
@@ -301,7 +300,7 @@ class Order extends Backend
|
||||
$result = MallBonusGrantPush::push($order);
|
||||
if ($result['ok']) {
|
||||
$order->grant_status = MallOrder::GRANT_ACCEPTED;
|
||||
$order->playx_transaction_id = $result['playx_transaction_id'];
|
||||
$order->status = MallOrder::STATUS_COMPLETED;
|
||||
$order->fail_reason = null;
|
||||
$order->update_time = time();
|
||||
$order->save();
|
||||
|
||||
Reference in New Issue
Block a user