dever hace 3 años
padre
commit
d8f5f1a8d3
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/shop/lib/Share.php

+ 2 - 2
app/shop/lib/Share.php

@@ -27,8 +27,8 @@ class Share
         $data['uid'] = $uid;
         $data['shop_id'] = $shop_id;
         $data['act_id'] = $act_id;
-        $where['status'] = 1;
-        $info = Dever::db('shop/user_share')->find($where);
+        $data['status'] = 1;
+        $info = Dever::db('shop/user_share')->find($data);
         if (!$info) {
         	$data['path'] = $path;
 	        $id = Dever::db('shop/user_share')->insert($data);