|
|
@@ -23,17 +23,17 @@ class MiniProgramService
|
|
|
|
|
|
public static function options()
|
|
|
{
|
|
|
- $wechat = SystemConfigService::more(['site_url', 'routine_appId', 'routine_appsecret']);
|
|
|
+ $wechat = SystemConfigService::more(['site_url', 'pay_routine_appid', 'pay_routine_appsecret']);
|
|
|
$payment = SystemConfigService::more(['pay_routine_mchid', 'pay_routine_key', 'pay_routine_client_cert', 'pay_routine_client_key', 'pay_weixin_open']);
|
|
|
$config = [];
|
|
|
$config['mini_program'] = [
|
|
|
- 'app_id' => isset($wechat['routine_appId']) ? trim($wechat['routine_appId']) : '',
|
|
|
- 'secret' => isset($wechat['routine_appsecret']) ? trim($wechat['routine_appsecret']) : '',
|
|
|
+ 'app_id' => isset($wechat['pay_routine_appid']) ? trim($wechat['pay_routine_appid']) : '',
|
|
|
+ 'secret' => isset($wechat['pay_routine_appsecret']) ? trim($wechat['pay_routine_appsecret']) : '',
|
|
|
'token' => isset($wechat['wechat_token']) ? trim($wechat['wechat_token']) : '',
|
|
|
'aes_key' => isset($wechat['wechat_encodingaeskey']) ? trim($wechat['wechat_encodingaeskey']) : ''
|
|
|
];
|
|
|
$config['payment'] = [
|
|
|
- 'app_id' => isset($wechat['routine_appId']) ? trim($wechat['routine_appId']) : '',
|
|
|
+ 'app_id' => isset($wechat['pay_routine_appid']) ? trim($wechat['pay_routine_appid']) : '',
|
|
|
'merchant_id' => trim($payment['pay_routine_mchid']),
|
|
|
'key' => trim($payment['pay_routine_key']),
|
|
|
'cert_path' => realpath('.' . $payment['pay_routine_client_cert']),
|