mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-11-14 22:53:43 +08:00
优化插件管理逻辑
This commit is contained in:
@@ -34,7 +34,6 @@ class PayAccount extends BaseModel
|
||||
$platform = PluginController::getPluginInfo($aid_info->getData('platform'));
|
||||
// 查询参数
|
||||
$params = json_decode($aid_info->params, true);
|
||||
$query = array_merge($platform['query'], $params);
|
||||
if ($aid_info && $platform) {
|
||||
$config = [
|
||||
'pid' => $aid_info->pid,
|
||||
@@ -48,8 +47,8 @@ class PayAccount extends BaseModel
|
||||
'account' => $aid_info->account,
|
||||
// 密码
|
||||
'password' => $aid_info->password,
|
||||
// 订单查询参数配置
|
||||
'query' => $query,
|
||||
// 配置参数
|
||||
'params' => $params,
|
||||
];
|
||||
if ($pid !== null) {
|
||||
$pid_info = User::where('pid', $pid)->find();
|
||||
|
||||
Reference in New Issue
Block a user