作者 王智

daima

@@ -220,4 +220,13 @@ class Common extends Api @@ -220,4 +220,13 @@ class Common extends Api
220 $res = Db::name('open')->order('id desc')->limit(1)->find(); 220 $res = Db::name('open')->order('id desc')->limit(1)->find();
221 $this->success('成功', cdnurl($res['image'])); 221 $this->success('成功', cdnurl($res['image']));
222 } 222 }
  223 +
  224 +
  225 + //取消订单
  226 + public function delOrder()
  227 + {
  228 + $order_sn = input('order_sn');
  229 + $res = Db::name('order')->where('order_sn', $order_sn)->update(['status' => 2]);
  230 + $this->res($res);
  231 + }
223 } 232 }