ソースを参照

支付之后取消

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'];