Skip to content

Commit a9ff3b4

Browse files
committed
格式化
1 parent edae50a commit a9ff3b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/App/Http/Controllers/Api/ConfigController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ public function __construct(Config $configPro, Upload $UploadRepo)
1717
{
1818
$this->configModel = $configPro;
1919
$this->uploadModel = $UploadRepo;
20-
$this->builderForm = resolve('builderForm')->item(['name' => 'status', 'type' => 'switch', 'label' => '开关']);
20+
$this->builderForm = resolve('builderForm')
21+
->item(['name' => 'status', 'type' => 'switch', 'label' => '开关'])
22+
->item(['name' => 'gateway', 'type' => 'hidden']);
2123
}
2224
public function index(Request $request)
2325
{
2426
$gateway = $request->tabIndex? $request->tabIndex: 'alipay';
2527
$configs = $this->configModel->where('gateway', '=', $gateway)->first();
26-
$this->builderForm->item(['name' => 'gateway', 'type' => 'hidden']);
2728
$this->publicGatewayForm($gateway, $configs);//根据不同网关添加不同 form item
2829
$this->publicForm();//添加公共form item
2930
$this->builderForm->apiUrl('submit', route('api.admin.omnipay.config.update'))->itemData($configs);
@@ -143,8 +144,7 @@ public function publicForm()
143144
$this->builderForm->tabs($tabs)
144145
->item(['name' => 'return_url', 'type' => 'text', 'label' => '回调地址','disabled'=>true])
145146
->item(['name' => 'notify_url', 'type' => 'text', 'label' => '通知地址','disabled'=>true])
146-
->config('labelWidth', '120px')
147-
;
147+
->config('labelWidth', '120px');
148148
}
149149
public function getFileName($value)
150150
{

0 commit comments

Comments
 (0)