| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace addons\Store\api\modules\v1\controllers;
- use addons\Store\common\models\StoreSettings;
- use api\controllers\OnAuthController;
- use common\enums\StatusEnum;
- class SettingController extends OnAuthController
- {
- public $modelClass = '';
- /**
- * 不用进行登录验证的方法
- *
- * 例如: ['index', 'update', 'create', 'view', 'delete']
- * 默认全部需要验证
- *
- * @var array
- */
- protected $authOptional = ['config'];
- /**
- * 公共配置信息
- * @return void
- */
- public function actionConfig()
- {
- $config = [
- 'title' => '登录',
- 'business_login_title' => '商家后台登录',
- 'business_login_config' => [
- 'account' => '请输入商家账号',
- 'password' => '请输入商家密码',
- 'checkbox_list' => ['记住密码', '下次自动登录'],
- 'remarks' => "还不是商家? 去入住",
- ]
- ];
- return $this->success("请求成功", ['config' => $config]);
- }
- }
|