SettingController.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace addons\Store\api\modules\v1\controllers;
  3. use addons\Store\common\models\StoreSettings;
  4. use api\controllers\OnAuthController;
  5. use common\enums\StatusEnum;
  6. class SettingController extends OnAuthController
  7. {
  8. public $modelClass = '';
  9. /**
  10. * 不用进行登录验证的方法
  11. *
  12. * 例如: ['index', 'update', 'create', 'view', 'delete']
  13. * 默认全部需要验证
  14. *
  15. * @var array
  16. */
  17. protected $authOptional = ['config'];
  18. /**
  19. * 公共配置信息
  20. * @return void
  21. */
  22. public function actionConfig()
  23. {
  24. $config = [
  25. 'title' => '登录',
  26. 'business_login_title' => '商家后台登录',
  27. 'business_login_config' => [
  28. 'account' => '请输入商家账号',
  29. 'password' => '请输入商家密码',
  30. 'checkbox_list' => ['记住密码', '下次自动登录'],
  31. 'remarks' => "还不是商家? 去入住",
  32. ]
  33. ];
  34. return $this->success("请求成功", ['config' => $config]);
  35. }
  36. }