|
@@ -71,7 +71,7 @@ class MassagerActionService extends BaseService
|
|
|
public function loginByMobile($mobile, $sms_code)
|
|
public function loginByMobile($mobile, $sms_code)
|
|
|
{
|
|
{
|
|
|
$check = \app\common\library\Sms::check($mobile, $sms_code, "massager_login");
|
|
$check = \app\common\library\Sms::check($mobile, $sms_code, "massager_login");
|
|
|
- if (!$check && $sms_code != '8888')
|
|
|
|
|
|
|
+ if (!$check)
|
|
|
return $this->fail("短信验证码不正确!");
|
|
return $this->fail("短信验证码不正确!");
|
|
|
$m = $this->model->findByMobile($mobile);
|
|
$m = $this->model->findByMobile($mobile);
|
|
|
if (null === $m)
|
|
if (null === $m)
|
|
@@ -400,7 +400,7 @@ class MassagerActionService extends BaseService
|
|
|
return $this->fail("助教信息不存在");
|
|
return $this->fail("助教信息不存在");
|
|
|
if (isset($params["mobile"])) {
|
|
if (isset($params["mobile"])) {
|
|
|
$check = \app\common\library\Sms::check($params["mobile"], isset($params["sms_code"]) ? $params["sms_code"] : "1234", "massager_modify_mobile");
|
|
$check = \app\common\library\Sms::check($params["mobile"], isset($params["sms_code"]) ? $params["sms_code"] : "1234", "massager_modify_mobile");
|
|
|
- if (!$check && $params["sms_code"] != '8888')
|
|
|
|
|
|
|
+ if (!$check)
|
|
|
return $this->fail("短信验证码不正确!");
|
|
return $this->fail("短信验证码不正确!");
|
|
|
$m = $this->model->where("mobile", $params["mobile"])
|
|
$m = $this->model->where("mobile", $params["mobile"])
|
|
|
->where("id", "<>", $m_id)->find();
|
|
->where("id", "<>", $m_id)->find();
|