@@ -691,7 +691,7 @@ class Match extends Api
$this->success('亲密度等级信息', $data);
}
-//////////////////////////////////////////////////////////////
+
//聊天匹配
public function gettypinguser(){
@@ -727,7 +727,7 @@ class Match extends Api
$this->success('success',$lists);
-
+//////////////////////////////////////////////////////////////
//过滤规则
private function fliter_user($lists){
@@ -47,7 +47,7 @@ class Sms extends Api
if ($last && time() - $last['createtime'] < 60) {
$this->error(__('发送频繁'));
- $ipSendTotal = \app\common\model\Sms::where(['ip' => $this->request->ip()])->whereTime('createtime', '-1 hours')->count();
+ $ipSendTotal = \app\common\model\Sms::where(['ip' => $this->request->ip()])->whereTime('createtime', 'today')->count();
if ($ipSendTotal >= 5) {
$this->error(__('ip发送频繁'));