Skip to content

Commit 8b3dad5

Browse files
committed
增加支付宝默认加密方式字段
1 parent 540f47f commit 8b3dad5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function publicGatewayForm($gateway,$configs)
8585
return $this->builderForm->item(['name' => 'driver', 'type' => 'select', 'label' => '默认驱动', 'placeholder' => '驱动','options'=>$driver])
8686
->item(['name' => 'app_id', 'type' => 'text', 'label' => 'appId', 'placeholder' => 'appId'])
8787
->item(['name' => 'seller_id', 'type' => 'text', 'label' => 'sellerEmail', 'placeholder' => '支付宝商家账号Email'])
88+
->item(['name' => 'other', 'type' => 'select', 'label' => '加密方式', 'placeholder' => '加密方式','options'=> ['RSA2','RSA','MD5']])
8889
->item(array_merge(['name' => 'public_key', 'label' => 'alipayPublicKey',
8990
'placeholder' => '支付宝公钥','fileName'=> $this->getFileName($configs->public_key)
9091
],$upload))

src/Databases/seeds/ConfigTableSeeder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public function run()
1616
DB::table('omnipay_configs')->insert([
1717
'gateway' => 'alipay',
1818
'driver' => 'Alipay_AopPage',
19+
'other' => 'RSA2',
1920
'return_url'=> route('Omnipay.callback',['gatewayNmae' => 'alipay']),
2021
'notify_url'=> route('Omnipay.notify',['gatewayNmae' => 'alipay'])
2122
]);

0 commit comments

Comments
 (0)