|
@@ -29,6 +29,21 @@ class Assms extends Api
|
|
$this->success(__('success'));
|
|
$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)
|
|
public function addSmsQuote($quote)
|
|
{
|
|
{
|
|
$quote_id= $quote['quote_id'];
|
|
$quote_id= $quote['quote_id'];
|