...
|
...
|
@@ -13,11 +13,7 @@ class OrderController extends HomeBaseController |
|
|
|
|
|
function _initialize()
|
|
|
{
|
|
|
session('user.id', 2);
|
|
|
if (empty(session('user.id'))) {
|
|
|
echo json_encode(['msg' => '登陆失败', 'code' => 40001]);
|
|
|
exit();
|
|
|
}
|
|
|
require_once EXTEND_PATH . '/Payment.php';
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -331,9 +327,13 @@ class OrderController extends HomeBaseController |
|
|
//微信支付
|
|
|
private function wxPay($info)
|
|
|
{
|
|
|
require_once EXTEND_PATH . '/Payment.php';
|
|
|
$pay = new \Payment($info['oid'], session('openid'), $info['body'], $info['total_fee']);
|
|
|
$pay->pay();
|
|
|
}
|
|
|
|
|
|
public function notufy() {
|
|
|
$pay = new \Payment();
|
|
|
$pay->handleNotify();
|
|
|
}
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|