public function sendResetCaptchaAction() { $mobile = $this->request->getPost('mobile'); $registerModel = new Models\Register(); $registerModel->mobileCaptcha($mobile, $type = 1); $data = array('mobile' => $mobile, 'timestamp' => time()); return $this->showResponseAsJson($data); }
public function mobileCaptchaAction() { $mobile = $this->request->getPost('mobile'); if ($this->request->get('type', 'string') == 'xgb') { //如果get过来xgb,则是选股宝找回密码的短信 $type = Models\Register::XGB_RESET_CODE; } else { $type = Models\Register::REGISTER_CODE; } //短信的类型 $registerModel = new Models\Register(); $result = $registerModel->mobileCaptcha($mobile, $type); $data = array('mobile' => $mobile, 'timestamp' => time()); return $this->showResponseAsJson($data); }