diff --git a/application/admin/controller/school/activity/order/Order.php b/application/admin/controller/school/activity/order/Order.php index 3d6fc06..67fbb51 100644 --- a/application/admin/controller/school/activity/order/Order.php +++ b/application/admin/controller/school/activity/order/Order.php @@ -143,34 +143,6 @@ class Order extends Backend - /** - * 后台核销 - * @return string - * @throws \think\Exception - * @throws \think\db\exception\BindParamException - * @throws \think\exception\DbException - * @throws \think\exception\PDOException - */ - public function verification($ids = ''){ - $param = $this->request->param(); - if($this->request->isPost()){ - try{ - if(isset($param['ids']))$ids = $param['ids']; - //设置模拟资格 - $model = (new \app\common\model\school\classes\activity\order\Order); - $model->verification($ids,0,true,'admin',$this->auth->id,true); - - - }catch (\Exception $e){ - $this->error($e->getMessage()); - } - $this->success('核销成功!'); - } - $row = $this->model->get($ids); - $this->view->assign('vo', $row); - return $this->view->fetch(); - } - @@ -318,6 +290,34 @@ class Order extends Backend } + /** + * 退剩余款项 + * @return string + * @throws \think\Exception + * @throws \think\db\exception\BindParamException + * @throws \think\exception\DbException + * @throws \think\exception\PDOException + */ + public function refund_all($ids = ''){ + $param = $this->request->param(); + if($this->request->isPost()){ + try{ + if(isset($param['ids']))$ids = $param['ids']; + $order = \app\common\model\school\activity\order\Order::getHaveOrder($ids); + + \app\common\model\school\activity\order\Order::orderRefund($order,$order['sub_refundprice'],'admin',$this->auth->id,true,true); + + + }catch (\Exception $e){ + $this->error($e->getMessage()); + } + $this->success('已重新发起退款,如果是第三方支付请等待回调!'); + } + $row = $this->model->get($ids); + $this->view->assign('vo', $row); + return $this->view->fetch(); + } + } diff --git a/application/admin/view/school/activity/order/order/index.html b/application/admin/view/school/activity/order/order/index.html index dd6e997..ec11ca3 100644 --- a/application/admin/view/school/activity/order/order/index.html +++ b/application/admin/view/school/activity/order/order/index.html @@ -52,14 +52,14 @@ -
打开微信扫一扫,扫码即可在手机端查看