调整sku白名单字段
parent
b78fe0b9cd
commit
c45bd080d4
|
|
@ -4,7 +4,6 @@ namespace App\Admin\Forms\Settings;
|
|||
|
||||
use App\Models\Setting;
|
||||
use Dcat\Admin\Widgets\Form;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class Kuaidi100 extends Form
|
||||
{
|
||||
|
|
@ -32,14 +31,14 @@ class Kuaidi100 extends Form
|
|||
*/
|
||||
public function form()
|
||||
{
|
||||
$appSettings = Setting::where('key', 'kuaidi100')->first();
|
||||
$appSettings = Setting::where('key', 'kuaidi100')->value('value');
|
||||
|
||||
$this->switch('is_use', '是否启用')->value(Arr::get($appSettings?->value, 'is_use', 0));
|
||||
$this->switch('is_use', '是否启用')->value($appSettings['is_use'] ?? 0);
|
||||
$this->divider();
|
||||
$this->text('app_key', 'APP_KEY')->value(Arr::get($appSettings?->value, 'app_key', ''));
|
||||
$this->text('customer', 'CUSTOMER')->value(Arr::get($appSettings?->value, 'customer', ''));
|
||||
$this->text('secret', 'SECRET')->value(Arr::get($appSettings?->value, 'secret', ''));
|
||||
$this->text('userid', 'USER_ID')->value(Arr::get($appSettings?->value, 'userid', ''));
|
||||
$this->text('callback_uri', '回调地址(链接)')->value(Arr::get($appSettings?->value, 'callback_uri', ''));
|
||||
$this->text('app_key', 'APP_KEY')->value($appSettings['app_key'] ?? '');
|
||||
$this->text('customer', 'CUSTOMER')->value($appSettings['customer'] ?? '');
|
||||
$this->text('secret', 'SECRET')->value($appSettings['secret'] ?? '');
|
||||
$this->text('userid', 'USER_ID')->value($appSettings['userid'] ?? '');
|
||||
$this->text('callback_uri', '回调地址(链接)')->value($appSettings['callback_uri'] ?? '');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ namespace App\Admin\Forms\Settings;
|
|||
|
||||
use App\Models\Setting;
|
||||
use Dcat\Admin\Widgets\Form;
|
||||
use Illuminate\Support\Arr;
|
||||
|
||||
class Unipush extends Form
|
||||
{
|
||||
|
|
@ -32,19 +31,19 @@ class Unipush extends Form
|
|||
*/
|
||||
public function form()
|
||||
{
|
||||
$appSettings = Setting::where('key', 'unipush')->first();
|
||||
$appSettings = Setting::where('key', 'unipush')->value('value');
|
||||
|
||||
$this->switch('is_use', '是否启用')->value(Arr::get($appSettings?->value, 'is_use', 0));
|
||||
$this->text('mall_app_id', '商城APP_ID')->value(Arr::get($appSettings?->value, 'mall_app_id', ''));
|
||||
$this->text('mall_app_key', '商城APP_KEY')->value(Arr::get($appSettings?->value, 'mall_app_key', ''));
|
||||
$this->text('mall_app_secret', '商城APP_SECRET')->value(Arr::get($appSettings?->value, 'mall_app_secret', ''));
|
||||
$this->text('mall_master_secret', '商城APP_MASTER_SECRET')->value(Arr::get($appSettings?->value, 'mall_master_secret', ''));
|
||||
$this->switch('is_use', '是否启用')->value($appSettings['is_use'] ?? 0);
|
||||
$this->text('mall_app_id', '商城APP_ID')->value($appSettings['mall_app_id'] ?? '');
|
||||
$this->text('mall_app_key', '商城APP_KEY')->value($appSettings['mall_app_id'] ?? '');
|
||||
$this->text('mall_app_secret', '商城APP_SECRET')->value($appSettings['mall_app_id'] ?? '');
|
||||
$this->text('mall_master_secret', '商城APP_MASTER_SECRET')->value($appSettings['mall_app_id'] ?? '');
|
||||
|
||||
$this->divider();
|
||||
$this->switch('merchant_is_use', '是否启用')->value(Arr::get($appSettings?->value, 'merchant_is_use', 0));
|
||||
$this->text('merchant_app_id', '商户APP_ID')->value(Arr::get($appSettings?->value, 'merchant_app_id', ''));
|
||||
$this->text('merchant_app_key', '商户APP_KEY')->value(Arr::get($appSettings?->value, 'merchant_app_key', ''));
|
||||
$this->text('merchant_app_secret', '商户APP_SECRET')->value(Arr::get($appSettings?->value, 'merchant_app_secret', ''));
|
||||
$this->text('merchant_master_secret', '商户APP_MASTER_SECRET')->value(Arr::get($appSettings?->value, 'merchant_master_secret', ''));
|
||||
$this->switch('merchant_is_use', '是否启用')->value($appSettings['merchant_is_use'] ?? 0);
|
||||
$this->text('merchant_app_id', '商户APP_ID')->value($appSettings['merchant_app_id'] ?? '');
|
||||
$this->text('merchant_app_key', '商户APP_KEY')->value($appSettings['merchant_app_key'] ?? '');
|
||||
$this->text('merchant_app_secret', '商户APP_SECRET')->value($appSettings['merchant_app_secret'] ?? '');
|
||||
$this->text('merchant_master_secret', '商户APP_MASTER_SECRET')->value($appSettings['merchant_master_secret'] ?? '');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,8 @@ class ProductSku extends Model
|
|||
'name',
|
||||
'subtitle',
|
||||
'category_id',
|
||||
'codcovere',
|
||||
'cover',
|
||||
'description',
|
||||
'images',
|
||||
'sell_price',
|
||||
'market_price',
|
||||
|
|
@ -63,6 +64,8 @@ class ProductSku extends Model
|
|||
'sales',
|
||||
'release_at',
|
||||
'sales_value',
|
||||
'buynote_id',
|
||||
'verify_state',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue