|
@@ -140,12 +140,14 @@ class Buy extends Base
|
|
|
|
|
|
$info['buy_notices'] = str_replace("\n", '<br />', $info['buy_notices']);
|
|
|
|
|
|
- $info['buy_class'] = 'mask fn-hide';
|
|
|
- $info['buy_code'] = '';
|
|
|
- $info['buy_yes'] = '';
|
|
|
+
|
|
|
$buy_num = Dever::input('buy_num');
|
|
|
if ($buy_num > 0) {
|
|
|
$info += $this->success();
|
|
|
+ } else {
|
|
|
+ $info['buy_class'] = 'mask fn-hide';
|
|
|
+ $info['buy_code'] = '';
|
|
|
+ $info['buy_yes'] = '';
|
|
|
}
|
|
|
|
|
|
return $info;
|