Kaynağa Gözat

Merge branch 'dev' into dev-sxb

sunxbiao 1 yıl önce
ebeveyn
işleme
7a665a013b

+ 1 - 1
app/common/repositories/store/order/StoreOrderRepository.php

@@ -5068,7 +5068,7 @@ class StoreOrderRepository extends BaseRepository
5068
         foreach ($list as $key => $item) {
5068
         foreach ($list as $key => $item) {
5069
             if ($item['fzone_paytype']) {
5069
             if ($item['fzone_paytype']) {
5070
                 $list[$key]['fzone_paytype'] = json_decode($item['fzone_paytype'], true);
5070
                 $list[$key]['fzone_paytype'] = json_decode($item['fzone_paytype'], true);
5071
-                if (!count($list[$key]['fzone_paytype'])) {
5071
+                if (is_array($list[$key]['fzone_paytype']) && !count($list[$key]['fzone_paytype'])) {
5072
                     $list[$key]['fzone_paytype'] = null;
5072
                     $list[$key]['fzone_paytype'] = null;
5073
                 }
5073
                 }
5074
             } else {
5074
             } else {

+ 4 - 4
app/controller/admin/order/Order.php

@@ -77,7 +77,7 @@ class Order extends BaseController
77
         // 导出
77
         // 导出
78
         $is_excel = request()->param('is_excel', 0);
78
         $is_excel = request()->param('is_excel', 0);
79
 
79
 
80
-        $result = $this->repository->merchantGetList($where, $page, $limit);
80
+        $result = $this->repository->merchantGetList($where, $page, $limit, $is_excel);
81
 
81
 
82
         if ($is_excel == 1) {
82
         if ($is_excel == 1) {
83
             $data = $result['list'];
83
             $data = $result['list'];
@@ -91,9 +91,9 @@ class Order extends BaseController
91
                     $item['real_name'], // 收货人
91
                     $item['real_name'], // 收货人
92
                     $item['merchant']['mer_name'] ?? '', // 商户名称
92
                     $item['merchant']['mer_name'] ?? '', // 商户名称
93
                     // $item['orderProduct'][0]['cart_info']['product']['image'],
93
                     // $item['orderProduct'][0]['cart_info']['product']['image'],
94
-                    $item['orderProduct'][0]['cart_info']['product']['store_name'] . ' | ' . $item['orderProduct'][0]['cart_info']['productAttr']['sku'],
95
-                    $item['orderProduct'][0]['cart_info']['productAttr']['price'],
96
-                    $item['orderProduct'][0]['product_num'],
94
+                    ($item['orderProduct'][0]['cart_info']['product']['store_name'] ?? '') . ' | ' . ($item['orderProduct'][0]['cart_info']['productAttr']['sku'] ?? ''),
95
+                    $item['orderProduct'][0]['cart_info']['productAttr']['price'] ?? 0.00,
96
+                    $item['orderProduct'][0]['product_num'] ?? 0,
97
                     $item['pay_price'], // 订单金额
97
                     $item['pay_price'], // 订单金额
98
                     $item['fzone_pay_note'], // 支付方式
98
                     $item['fzone_pay_note'], // 支付方式
99
                     $item['paid'] == 0 ? "未支付" : "已支付", // 支付状态
99
                     $item['paid'] == 0 ? "未支付" : "已支付", // 支付状态

+ 11 - 11
app/controller/api/store/merchant/Taskorderguquan.php

@@ -18,21 +18,21 @@ class Taskorderguquan
18
     {
18
     {
19
 
19
 
20
         /**
20
         /**
21
-         * 10000元补贴下面人员
21
+         * 9900元补贴下面人员
22
          * 13231658486周行体1500
22
          * 13231658486周行体1500
23
          * 13333069689魏惠新2000
23
          * 13333069689魏惠新2000
24
-         * 13959100621周金花500
24
+         * 13959100621周金花600
25
          * 13701061395李素红500
25
          * 13701061395李素红500
26
          * 17501006833邢艳丽500
26
          * 17501006833邢艳丽500
27
          * 15631982690魏震洪400
27
          * 15631982690魏震洪400
28
          * 18603401312黄金花400
28
          * 18603401312黄金花400
29
-         * 13521438652徐立苹500
29
+         * 13521438652徐立苹200
30
          * 15832971815孟晓玮500
30
          * 15832971815孟晓玮500
31
          * 18600200909陈冠霖500
31
          * 18600200909陈冠霖500
32
          * 18001316701闫旭400
32
          * 18001316701闫旭400
33
          * 15810064711 王   玲 500
33
          * 15810064711 王   玲 500
34
          * 13932925303会强400
34
          * 13932925303会强400
35
-         * 15321221558李伟300
35
+         * 15321221558李伟400
36
          * 15232797965侯玉兰50
36
          * 15232797965侯玉兰50
37
          * 13601071082隋彩云300
37
          * 13601071082隋彩云300
38
          * 13161909228刘银霞50
38
          * 13161909228刘银霞50
@@ -42,29 +42,29 @@ class Taskorderguquan
42
          * 15332507711张传莲50
42
          * 15332507711张传莲50
43
          * 18715313601大饼500
43
          * 18715313601大饼500
44
          *
44
          *
45
-         * 计10000元
45
+         * 计9900元
46
          *
46
          *
47
          * 2000转给周军VR市场使用
47
          * 2000转给周军VR市场使用
48
          *
48
          *
49
-         * 43258.35做合伙人分红
49
+         * 4.3258.35做合伙人分红
50
          *
50
          *
51
-         * 共计55258.35
51
+         * 共计55158.35万
52
          */
52
          */
53
         $data = [
53
         $data = [
54
             '13231658486' => 1500,
54
             '13231658486' => 1500,
55
             '13333069689' => 2000,
55
             '13333069689' => 2000,
56
-            '13959100621' => 500,
56
+            '13959100621' => 600,
57
             '13701061395' => 500,
57
             '13701061395' => 500,
58
             '17501006833' => 500,
58
             '17501006833' => 500,
59
             '15631982690' => 400,
59
             '15631982690' => 400,
60
             '18603401312' => 400,
60
             '18603401312' => 400,
61
-            '13521438652' => 500,
61
+            '13521438652' => 200,
62
             '15832971815' => 500,
62
             '15832971815' => 500,
63
             '18600200909' => 500,
63
             '18600200909' => 500,
64
             '18001316701' => 400,
64
             '18001316701' => 400,
65
             '15810064711' => 500,
65
             '15810064711' => 500,
66
             '13932925303' => 400,
66
             '13932925303' => 400,
67
-            '15321221558' => 300,
67
+            '15321221558' => 400,
68
             '15232797965' => 50,
68
             '15232797965' => 50,
69
             '13601071082' => 300,
69
             '13601071082' => 300,
70
             '13161909228' => 50,
70
             '13161909228' => 50,
@@ -72,7 +72,7 @@ class Taskorderguquan
72
             '18911752386' => 50,
72
             '18911752386' => 50,
73
             '13215917919' => 50,
73
             '13215917919' => 50,
74
             '15332507711' => 50,
74
             '15332507711' => 50,
75
-            '18715313601' => 500,
75
+            '18715313601' => 500
76
         ];
76
         ];
77
 
77
 
78
         $result = Db::name("user")
78
         $result = Db::name("user")