bianjunhui пре 1 година
родитељ
комит
6b75e0ad13
1 измењених фајлова са 15 додато и 0 уклоњено
  1. 15 0
      application/api/controller/Assms.php

+ 15 - 0
application/api/controller/Assms.php

@@ -29,6 +29,21 @@ class Assms extends Api
         $this->success(__('success'));
     }
 
+    public function cancelSmsLog(){
+        $post=$this->request->post();
+        $sign =$post['sign'];
+        if($sign!=Md5('longyi_as')){
+            $this->error('sign error');
+        }
+        $quote_id= $post['quote_id'];
+        $mobile =$post['mobile'];
+        $where['mobile']=$quote_id;
+        $where['quote_id']=$mobile;
+        $where['status']=1;
+        Db::name('sms_log')->where($where)->delete();
+        $this->success(__('success'));
+    }
+
     public function addSmsQuote($quote)
     {
         $quote_id= $quote['quote_id'];