|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+<?php
|
|
|
2
|
+/**
|
|
|
3
|
+ * @package merchant
|
|
|
4
|
+ *
|
|
|
5
|
+ * @author xaboy
|
|
|
6
|
+ * @day 2020/6/2
|
|
|
7
|
+ *
|
|
|
8
|
+ *
|
|
|
9
|
+ */
|
|
|
10
|
+
|
|
|
11
|
+namespace app\controller\api;
|
|
|
12
|
+
|
|
|
13
|
+
|
|
|
14
|
+use app\common\model\store\order\StoreGroupOrder;
|
|
|
15
|
+use app\controller\api\merchant\sxy\Access;
|
|
|
16
|
+use crmeb\services\QrcodeService;
|
|
|
17
|
+use crmeb\services\WechatService;
|
|
|
18
|
+
|
|
|
19
|
+
|
|
|
20
|
+class AliPay
|
|
|
21
|
+{
|
|
|
22
|
+ public function getPayInfo()
|
|
|
23
|
+ {
|
|
|
24
|
+ $groupOrderId = request()->param('groupOrderId');
|
|
|
25
|
+ $groupOrder = StoreGroupOrder::where('group_order_id', $groupOrderId)->find()->toArray();
|
|
|
26
|
+ $access = new Access();
|
|
|
27
|
+ $res = $access->pay_huifu('ALI','',$groupOrder,'支付宝支付',env('APP_URL')."/api/hf_notify/pay");
|
|
|
28
|
+ return app('json')->success($res);
|
|
|
29
|
+ }
|
|
|
30
|
+
|
|
|
31
|
+}
|