|
@@ -131,11 +131,16 @@ class Buy extends Base
|
|
|
$config['button_node'] = 'copy';
|
|
|
$config['button_span'] = $order['code'];
|
|
|
if (!$order['code']) {
|
|
|
- $order['code'] = '生成中';
|
|
|
+ $order['code'] = '生成中...';
|
|
|
$config['reload'] = 2;
|
|
|
- $this->location('success', array('id' => $id, 'buy' => $buy_id, 'order_id' => $order_id));
|
|
|
+ $config['button_node'] = 'refresh';
|
|
|
+ $config['button_span'] = '';
|
|
|
+ $config['button'] = '刷新';
|
|
|
+ //$this->location('success', array('id' => $id, 'buy' => $buy_id, 'order_id' => $order_id));
|
|
|
+ } else {
|
|
|
+ $config['button'] = '复制兑换码';
|
|
|
}
|
|
|
- $config['button'] = '复制兑换码';
|
|
|
+
|
|
|
$config['code'] = '<p>兑换码:'.$order['code'].'</p>';
|
|
|
|
|
|
}
|