rabin 8 horas atrás
pai
commit
a47f654168

+ 2 - 2
src/place/order/app/Lib/Role/Pay.php

@@ -35,8 +35,8 @@ class Pay extends Core
             'promotion' => $detail['promotion'],
             'promotion_text' => $detail['promotion_text'],
         ];
-        if (count($this->detail) < 1) {
-            $this->order['name'][$detail['id']] = $detail['name'];
+        if (!$this->order['name']) {
+            $this->order['name'] = $detail['name'];
         }
         $this->order['cash'] += $detail['price'] * $detail['buy_num'];
         $this->order['num'] += $detail['buy_num'];

+ 3 - 2
src/place/order/app/Lib/Source/Pay.php

@@ -66,8 +66,9 @@ class Pay extends Core
                 }
             }
         }
-        if (count($this->detail) < 1) {
-            $this->order['name'][$source['id']] = $source['name'];
+        if (!$this->order['name']) {
+            //$this->order['name'][$source['id']] = $source['name'];
+            $this->order['name'] = $source['name'];
         }
         $this->order['cash'] += $detail['price'] * $detail['buy_num'];
         $this->order['num'] += $detail['buy_num'];

+ 2 - 2
src/place/set/app/Lib/Account.php

@@ -21,8 +21,8 @@ class Account
             Dever::load(\Api\Lib\Account::class)->run($account, 'task', [], 1, 'run', 'place');
         }
         $param = [];
-        $param['cash'] = $result['cash'];
-        $param['order_num'] = $result['order_num'];
+        $param['cash'] = $order['cash'];
+        $param['order_num'] = $order['order_num'];
         $param['openid'] = $result['openid'];
         $param['name'] = $order['name'];
         $param['notify'] = $order['notify'];