作者 lihan
1 个管道 的构建 通过 耗费 0 秒

充值卡测试

@@ -24,7 +24,7 @@ class ChargeController extends HomeBaseController @@ -24,7 +24,7 @@ class ChargeController extends HomeBaseController
24 $request = request(); 24 $request = request();
25 if ($request->isAjax()) { 25 if ($request->isAjax()) {
26 $info = Db::name('charge')->where(['id' => $request->param('id')])->find(); 26 $info = Db::name('charge')->where(['id' => $request->param('id')])->find();
27 - $pay = new \Payment($request->param('id'), session('user.openid'), '充值', $info['denomination'] * 100); 27 + $pay = new \Payment($request->param('id'), session('user.openid'), '充值', 1/*$info['denomination'] * 100*/);
28 $this->success('微信充值', '', $pay->pay()); 28 $this->success('微信充值', '', $pay->pay());
29 } 29 }
30 } 30 }