Commit ff17dcdc authored by hujun's avatar hujun

log error edit

parent 63c1db53
......@@ -94,6 +94,12 @@ class Member extends Basic
* @param Request $this->request
* @return type
*/
/**
* @return \think\Response
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function sendSms() {
$data['data'] = array();
$data['status'] = 101;
......@@ -109,7 +115,7 @@ class Member extends Basic
->select();
$num = count($send_time); //发送数量
if ((time() - strtotime($send_time[$num-1]->send_time) < 58) && $num != 0) {
if (!empty($send_time[$num-1]) && (time() - strtotime($send_time[$num-1]->send_time) < 58) && $num != 0) {
$data['msg'] = '1分钟内不能再次获取验证码';
} elseif ($num > 7){
$data['msg'] = '短信发送超过上限';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment