소스 검색

删除不发送

bianjunhui 1 년 전
부모
커밋
5249c6e266
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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();