Skip to content

Commit 19bbed8

Browse files
committed
必须增加数组名称否则保存数字
1 parent 8b3dad5 commit 19bbed8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ public function publicGatewayForm($gateway,$configs)
8282
'Alipay_LegacyExpress' => '即时到账',
8383
'Alipay_LegacyWap' => '手机网站支付'
8484
];
85+
$other = ['RSA2'=>'RSA2','RSA'=>'RSA','MD5'=>'MD5'];
8586
return $this->builderForm->item(['name' => 'driver', 'type' => 'select', 'label' => '默认驱动', 'placeholder' => '驱动','options'=>$driver])
8687
->item(['name' => 'app_id', 'type' => 'text', 'label' => 'appId', 'placeholder' => 'appId'])
8788
->item(['name' => 'seller_id', 'type' => 'text', 'label' => 'sellerEmail', 'placeholder' => '支付宝商家账号Email'])
88-
->item(['name' => 'other', 'type' => 'select', 'label' => '加密方式', 'placeholder' => '加密方式','options'=> ['RSA2','RSA','MD5']])
89+
->item(['name' => 'other', 'type' => 'select', 'label' => '加密方式', 'placeholder' => '加密方式','options'=>$other])
8990
->item(array_merge(['name' => 'public_key', 'label' => 'alipayPublicKey',
9091
'placeholder' => '支付宝公钥','fileName'=> $this->getFileName($configs->public_key)
9192
],$upload))

0 commit comments

Comments
 (0)