Commit 8178443d authored by zhuwei's avatar zhuwei

bug

parent af2bf3ed
...@@ -613,7 +613,7 @@ class User extends Basic ...@@ -613,7 +613,7 @@ class User extends Basic
$model_res = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = 1, $order); $model_res = $model->getLastOrNextUserIDPhoneFollowP($where, $field, $limit = 1, $order);
if (!$model_res) { if (!$model_res) {
return $this->response("201", "查无数据", ['user_id'=>$params['id']]); return $this->response("201", "查无数据", ['id'=>$params['id']]);
} }
// 判断当天被拨打是否超过5次 // 判断当天被拨打是否超过5次
...@@ -632,13 +632,13 @@ class User extends Basic ...@@ -632,13 +632,13 @@ class User extends Basic
if (($model_res[0]['vip'] == 1)) { if (($model_res[0]['vip'] == 1)) {
if (($examine_vip == 1)) { if (($examine_vip == 1)) {
return $this->response("201", "vip 非客方", ['user_id'=>$model_res[0]['id']]); return $this->response("201", "vip 非客方", ['id'=>$model_res[0]['id']]);
} }
} }
// 判断是否24小时保护期内 // 判断是否24小时保护期内
if((time() - strtotime($model_res[0]['create_time'])) < (60*60*24)){ if((time() - strtotime($model_res[0]['create_time'])) < (60*60*24)){
return $this->response("201", "24小时保护期内", ['user_id'=>$model_res[0]['id']]); return $this->response("201", "24小时保护期内", ['id'=>$model_res[0]['id']]);
} }
} }
// dump($model_res);exit(); // dump($model_res);exit();
......
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