@@ -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'];
@@ -66,8 +66,9 @@ class Pay extends Core
- $this->order['name'][$source['id']] = $source['name'];
+ //$this->order['name'][$source['id']] = $source['name'];
+ $this->order['name'] = $source['name'];
@@ -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'];