|
@@ -108,6 +108,17 @@ class Order extends Controller
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 账单支付
|
|
|
+ * */
|
|
|
+ public function order_pay(){
|
|
|
+ $id = input('id/d',0);
|
|
|
+ $order_data['is_pay'] = 1;
|
|
|
+ $order_data['pay_time'] = date('Y-m-d H:i:s',time());
|
|
|
+ $is_pay = Db::table('hy_order')->where('id',$id)->update($order_data);
|
|
|
+ $is_order_card = Db::table('hy_order_card')->where('oid',$id)->update(['is_pay'=>1]);
|
|
|
+ $this->success('操作成功','','javascript:window.location.reload()');
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|