...
|
...
|
@@ -44,6 +44,23 @@ class GoodsdetailsController extends WeChatBaseController{ |
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 点击收藏
|
|
|
*/
|
|
|
public function goods_collection(){
|
|
|
|
|
|
$goods_id = $_POST['goods_id'];
|
|
|
$uid = cmf_get_current_user_id();
|
|
|
$arr['goods_id'] = $goods_id;
|
|
|
$arr['uid'] = $uid;
|
|
|
$data = Db::name('collect') -> insert($arr);
|
|
|
if($data){
|
|
|
return true;
|
|
|
}else{
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|