Apply.php 695 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace addons\shopro\controller\store;
  3. use addons\shopro\exception\Exception;
  4. use addons\shopro\controller\Base as ShoproBase;
  5. /**
  6. * 不继承门店的 base
  7. */
  8. class Apply extends ShoproBase
  9. {
  10. protected $noNeedLogin = [];
  11. protected $noNeedRight = ['*'];
  12. public function info() {
  13. $this->success('门店申请', \addons\shopro\model\store\Apply::info());
  14. }
  15. public function apply() {
  16. $params = $this->request->post();
  17. // 表单验证
  18. $this->shoproValidate($params, get_class(), 'apply');
  19. $order = \addons\shopro\model\store\Apply::apply($params);
  20. $this->success('门店申请提交成功', $order);
  21. }
  22. }