|
@@ -61,13 +61,13 @@ class Record
|
|
|
}
|
|
|
#充值和提现
|
|
|
public function updateRecord($id,$name,$data){
|
|
|
- $audit = Dever::input('audit',$data);
|
|
|
- $shop_id = Dever::input('shop_id',$data);
|
|
|
- $type = Dever::input('type',$data);
|
|
|
- $price = Dever::input('price',$data);
|
|
|
+ $audit = Dever::param('audit',$data);
|
|
|
+ $shop_id = Dever::param('shop_id',$data);
|
|
|
+ $type = Dever::param('type',$data);
|
|
|
+ $price = Dever::param('price',$data);
|
|
|
$info = Dever::db('shop/record')->find($id);
|
|
|
- $shop = Dever::db('shop/info')->find($shop_id);
|
|
|
- if ($info) {
|
|
|
+ $shop = Dever::db('shop/info')->find($shop_id);
|
|
|
+ if ($info && $shop) {
|
|
|
$where['where_id'] = $shop['id'];
|
|
|
$where['price'] = $info['price'];
|
|
|
if($info['type'] ==2){
|