1.修复index.vue表格翻译错误
2.限制统一订单类型审核 3.统一订单手动推送报错PlayX 接口未配置
This commit is contained in:
@@ -166,7 +166,7 @@ class Order extends Backend
|
||||
if ($order->status !== MallOrder::STATUS_PENDING) {
|
||||
return $this->error(__('Order status must be PENDING'));
|
||||
}
|
||||
if ($order->type === MallOrder::TYPE_PHYSICAL) {
|
||||
if ($order->type !== MallOrder::TYPE_WITHDRAW) {
|
||||
return $this->error(__('Order type not supported'));
|
||||
}
|
||||
|
||||
@@ -214,6 +214,9 @@ class Order extends Backend
|
||||
if ($order->status !== MallOrder::STATUS_PENDING) {
|
||||
return $this->error(__('Order status must be PENDING'));
|
||||
}
|
||||
if (!in_array($order->type, [MallOrder::TYPE_PHYSICAL, MallOrder::TYPE_WITHDRAW], true)) {
|
||||
return $this->error(__('Order type not supported'));
|
||||
}
|
||||
|
||||
if ($order->type === MallOrder::TYPE_PHYSICAL && $rejectReason === '') {
|
||||
return $this->error(__('Missing required fields'));
|
||||
@@ -291,7 +294,7 @@ class Order extends Backend
|
||||
return $this->error(__('Current grant status cannot be manually pushed'));
|
||||
}
|
||||
|
||||
if (strval(config('playx.api.base_url', '')) === '') {
|
||||
if (strval(config('playx.angpow_import.base_url', '')) === '') {
|
||||
return $this->error(__('PlayX API not configured'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user