mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2026-05-15 10:26:37 +08:00
调整支付逻辑
This commit is contained in:
@@ -9,10 +9,7 @@ use app\model\Platform;
|
||||
|
||||
class PluginController extends BaseController
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
}
|
||||
// 插件列表
|
||||
public function getPluginList()
|
||||
{
|
||||
$query = $this->request->get();
|
||||
@@ -23,4 +20,15 @@ class PluginController extends BaseController
|
||||
return json(['code' => 1, 'msg' => '无数据记录', 'count' => 0, 'data' => []]);
|
||||
}
|
||||
}
|
||||
// 插件启用
|
||||
public function pluginEnable()
|
||||
{
|
||||
$info = $this->request->post();
|
||||
$up_res = Platform::update($info);
|
||||
if ($up_res) {
|
||||
return json(\backMsg(0, '成功'));
|
||||
} else {
|
||||
return json(\backMsg(1, '失败'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user