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