12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- /**
- * VipController.php UTF-8
- * VIP
- *
- * @date : 2017/11/15 22:06
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : wuyonghong <wyh@huosdk.com>
- * @version : HUOSDK 8.0
- */
- namespace api\wapapp\controller\v8;
- use api\common\controller\ApiBaseController;
- class VipController extends ApiBaseController {
- public function __construct() {
- parent::__construct();
- }
- /**
- * VIP鉴权
- * http://doc.1tsdk.com/95?page_id=2396
- * 【域名】/v8/user/auth
- *
- */
- public function checkAuth() {
- $_mem_id = $this->mem_id;
- $_params = $this->request->post();
- if (empty($_mem_id)) {
- if (empty($_params['mobile']) || empty($_params['mobile_prefix'])) {
- $this->error(lang('check fail'));
- }
- }
- // $_post_class = new Member();
- // $_code = 200;
- // $_data = [];
- // try {
- // $_post_class->getDetail($_param['id']);
- // } catch (HuoException $he) {
- // $_code = $he->getCode();
- // $_data = $he->getData();
- // }
- // if (200 != $_code) {
- // $this->error(lang(config('error.'.$_code)), $_data, $_code);
- // }
- // $this->success(lang('SUCCESS'), $_data);
- $_rdata['is_vip'] = 1;
- $_rdata['need_pay'] = 1;
- $_rdata['url'] = '';
- $_rdata['lang'] = 'en';
- $_rdata['mem_id'] = '2';
- $_rdata['cp_user_token'] = '11111111';
- $_rdata['hs_token'] = '222222222222';
- $this->success(lang('SUCCESS'), $_rdata);
- }
- }
|