更新子应用管理
This commit is contained in:
parent
929ca134cd
commit
155e7428c0
|
@ -18,6 +18,7 @@ class SystemLogic extends BaseLogic
|
|||
'url' => $params['url'],
|
||||
'down_url' => $params['down_url'],
|
||||
'icon' => $params['icon'],
|
||||
'sort' => $params['sort'] ?? 9999,
|
||||
'app_version' => $params['app_version'],
|
||||
'register_status' => $params['register_status'],
|
||||
'status' => 0,
|
||||
|
@ -55,6 +56,7 @@ class SystemLogic extends BaseLogic
|
|||
'url' => $params['url'],
|
||||
'down_url' => $params['down_url'],
|
||||
'icon' => $params['icon'],
|
||||
'sort' => $params['sort'] ?? 9999,
|
||||
'app_version' => $params['app_version'],
|
||||
'register_status' => $params['register_status'],
|
||||
'status' => $params['status'],
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace app\api\controller;
|
||||
|
||||
use app\common\enum\notice\NoticeEnum;
|
||||
use app\common\model\systems\System;
|
||||
use think\facade\Log;
|
||||
use think\response\Json;
|
||||
|
||||
|
@ -13,7 +14,7 @@ use think\response\Json;
|
|||
*/
|
||||
class IndexController extends BaseApiController
|
||||
{
|
||||
public array $notNeedLogin = ['code'];
|
||||
public array $notNeedLogin = ['code', 'miniapp'];
|
||||
|
||||
// 获取短信验证码
|
||||
public function code(): Json
|
||||
|
@ -47,4 +48,9 @@ class IndexController extends BaseApiController
|
|||
}
|
||||
}
|
||||
|
||||
public function miniapp(): Json
|
||||
{
|
||||
return $this->success('获取成功', System::where('status','<>',2)->order('sort asc')->select()->toArray());
|
||||
}
|
||||
|
||||
}
|
|
@ -16,7 +16,7 @@ class SystemValidate extends BaseValidate
|
|||
'name' => 'require|unique:system',
|
||||
'icon' => 'require',
|
||||
'app_version' => 'require',
|
||||
'down_url' => 'require',
|
||||
'down_url' => 'require|uri',
|
||||
'url' => 'require|uri|unique:system',
|
||||
'status' => 'require|in:0,1',
|
||||
'register_status' => 'require|in:0,1',
|
||||
|
|
Loading…
Reference in New Issue