|
|
@@ -3,10 +3,12 @@ namespace app\controller\api\merchant\sxy;
|
|
3
|
3
|
|
|
4
|
4
|
use alipay\aop\AopClient;
|
|
5
|
5
|
use alipay\aop\request\AlipaySystemOauthTokenRequest;
|
|
|
6
|
+use app\common\dao\movie\order\MovieOrderDao;
|
|
6
|
7
|
use app\common\model\store\order\StoreOrder;
|
|
7
|
8
|
use app\common\model\user\UserCertification;
|
|
8
|
9
|
use app\common\repositories\merchant\order\OrderGzcRepository;
|
|
9
|
10
|
use app\common\repositories\merchant\order\OrderMerchantRepository;
|
|
|
11
|
+use app\common\repositories\movie\MovieRepository;
|
|
10
|
12
|
use app\common\repositories\store\order\StoreGroupOrderRepository;
|
|
11
|
13
|
use app\common\repositories\store\order\StoreOrderRepository;
|
|
12
|
14
|
use app\controller\Aes;
|
|
|
@@ -787,7 +789,7 @@ class Access
|
|
787
|
789
|
}
|
|
788
|
790
|
//b2 精彩生活区的现金+积分支付
|
|
789
|
791
|
if($array_fzone_paytype['type'] == 'b2'){
|
|
790
|
|
-
|
|
|
792
|
+
|
|
791
|
793
|
$userdata = Db::name('user')->where('uid',$store_order_data['uid'])->find();
|
|
792
|
794
|
//查询用户的积分是否足够
|
|
793
|
795
|
$score_pri = $userdata['score'] - $array_fzone_paytype['other'];
|
|
|
@@ -2310,4 +2312,26 @@ class Access
|
|
2310
|
2312
|
}
|
|
2311
|
2313
|
|
|
2312
|
2314
|
}
|
|
|
2315
|
+
|
|
|
2316
|
+ /**
|
|
|
2317
|
+ * 电影票支付
|
|
|
2318
|
+ *
|
|
|
2319
|
+ * @return mixed
|
|
|
2320
|
+ */
|
|
|
2321
|
+ public function dy_pay_wechat_mp()
|
|
|
2322
|
+ {
|
|
|
2323
|
+ $order_id = Request::param('oid', '');
|
|
|
2324
|
+ $code = Request::param('code', '');
|
|
|
2325
|
+ $pay_type = Request::param('type', '');
|
|
|
2326
|
+ if (empty($order_id)) return app('json')->fail('订单不存在');
|
|
|
2327
|
+ if (empty($pay_type) || !in_array(strtolower($pay_type), ['wx', 'ali'])) return app('json')->fail('请选择支付方式');
|
|
|
2328
|
+
|
|
|
2329
|
+ try {
|
|
|
2330
|
+ /** @var MovieRepository $movieRepository */
|
|
|
2331
|
+ $movieRepository = new MovieRepository(new MovieOrderDao());
|
|
|
2332
|
+ return app('json')->success($movieRepository->confirmOrder(null, $order_id, $pay_type, $code));
|
|
|
2333
|
+ } catch (\Exception $exception) {
|
|
|
2334
|
+ return app('json')->fail($exception->getMessage());
|
|
|
2335
|
+ }
|
|
|
2336
|
+ }
|
|
2313
|
2337
|
}
|