|
@@ -105,10 +105,10 @@ class Buy extends Core
|
|
|
$this->data['method']['type'] = 1;
|
|
|
|
|
|
$this->data['method']['price'] = $this->data['price'];
|
|
|
- $this->data['price'] = $this->shop['price'] - $this->data['price'];
|
|
|
+ $this->data['price'] = 0;
|
|
|
|
|
|
- $this->data['method']['yue'] = $this->data['price'];
|
|
|
- }elseif($this->shop['price'] < $this->data['price']){
|
|
|
+ $this->data['method']['yue'] = $this->shop['price'] - $this->data['price']
|
|
|
+ }else {
|
|
|
$this->data['method']['type'] = 2;
|
|
|
$this->data['method']['price'] = $this->shop['price'];
|
|
|
$this->data['price'] = $this->data['price'] - $this->shop['price'];
|