|
@@ -127,18 +127,17 @@ class Buy extends Core
|
|
|
$this->data['wallet']['price'] = $this->data['price'];
|
|
|
$this->data['price'] = 0;
|
|
|
|
|
|
- $this->data['wallet']['yue'] = $this->shop['price'] - $this->data['price'];
|
|
|
+ $this->data['wallet']['yue'] = round($this->shop['price'] - $this->data['price'],2);
|
|
|
} else {
|
|
|
$this->data['wallet']['type'] = 2;
|
|
|
$this->data['wallet']['price'] = $this->shop['price'];
|
|
|
- $this->data['price'] = $this->data['price'] - $this->shop['price'];
|
|
|
+ $this->data['price'] = round($this->data['price'] - $this->shop['price'],2);
|
|
|
$this->data['wallet']['yue'] = 0;
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
$this->data['wallet']['yue'] = $this->shop['price'];
|
|
|
}
|
|
|
-
|
|
|
$this->data['name'] = implode(',', $this->data['name']);
|
|
|
}
|
|
|
|