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;
     }