Sfoglia il codice sorgente

短信发送的修改

sandm 1 anno fa
parent
commit
72297d2ed4
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;
     }