|
@@ -115,6 +115,15 @@ class Buy extends Base
|
|
|
$config['list'] = $this->url('list');
|
|
|
$config['buy'] = $this->url('pay', array('id' => $id));
|
|
|
|
|
|
+ $order_id = Dever::input('order_id');
|
|
|
+ $order = Dever::db('journal/order')->one($order_id);
|
|
|
+
|
|
|
+ $config['code_show'] = 'display:none;';
|
|
|
+ if ($order && $order['type'] == 3) {
|
|
|
+ $config['code_show'] = '';
|
|
|
+ $config['code'] = $order['code'];
|
|
|
+ }
|
|
|
+
|
|
|
return $config;
|
|
|
}
|
|
|
|
|
@@ -213,7 +222,7 @@ class Buy extends Base
|
|
|
}
|
|
|
|
|
|
//$param参数
|
|
|
- $refer = $this->url('success', array('id' => $journal_id, 'buy' => $buy_id));
|
|
|
+ $refer = $this->url('success', array('id' => $journal_id, 'buy' => $buy_id, 'order_id' => $id));
|
|
|
$param = array
|
|
|
(
|
|
|
'account_id' => 2,
|