소스 검색

短信发送的修改

sandm 1 년 전
부모
커밋
72297d2ed4
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/common/api/ChuanglanSmsApi.php

+ 1 - 0
app/common/api/ChuanglanSmsApi.php

@@ -38,6 +38,7 @@ class ChuanglanSmsApi {
         if(!empty($time) && $now-$time < 10800){
             return false;//3小时内同一个手机号码同一条信息不重复发送
         }
+        $redis->set($unique,$now,12000);
         $result = $this->curlPost(self::API_SEND_URL, $postArr);
         return $result;
     }