浏览代码

短信发送的修改

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