rabin 3 years ago
parent
commit
5ac39be2bd
1 changed files with 6 additions and 6 deletions
  1. 6 6
      app/shop/lib/Record.php

+ 6 - 6
app/shop/lib/Record.php

@@ -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){