|
@@ -5,12 +5,14 @@ class Price
|
|
|
{
|
|
|
public function get($info, $app, $type, $button)
|
|
|
{
|
|
|
+ $num = Dever::input('num', 'is_numeric', '数量', 1);
|
|
|
$result = array();
|
|
|
$result['status'] = 1;
|
|
|
$result['text'] = '';
|
|
|
$result['original'] = $info['price'];
|
|
|
$result['value'] = $info['price'];
|
|
|
$result['button'] = $button;
|
|
|
+ $result['num'] = $num;
|
|
|
$result['list'] = array();
|
|
|
$order = Dever::db('order', 'place')->find(array('type' => $type, 'type_id' => $info['id'], 'uid' => Place::$uid, 'status' => 5));
|
|
|
if ($order) {
|
|
@@ -36,6 +38,7 @@ class Price
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ $result['value'] = $result['value'] * $result['num'];
|
|
|
$result['text'] = $this->getText($result['value'], $type);
|
|
|
return $result;
|
|
|
}
|