Ver Fonte

删除不发送

bianjunhui há 1 ano atrás
pai
commit
5249c6e266
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      application/api/controller/Assms.php

+ 2 - 2
application/api/controller/Assms.php

@@ -63,8 +63,8 @@ class Assms extends Api
             $mobiles=$datas['mobile'];
             //删除手机号、购物车ID相同待发送短信信息
             $where['mobile']=$mobiles;
-            $where['status']=1;
-            Db::name('sms_log')->where($where)->delete();
+
+            Db::name('sms_log')->where($where)->where('status=1 or status=5')->delete();
             unset($where);
             $where['status']=1;
             $template= Db::name('sms_template')->where($where)->select();