...
|
...
|
@@ -27,6 +27,15 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
*/
|
|
|
public function personal_collect(){
|
|
|
|
|
|
$uid = cmf_get_current_user_id();
|
|
|
$data = Db::name('collect') -> where("uid =".$uid) -> select();
|
|
|
$data_count = count($data);
|
|
|
if(!empty($data)){
|
|
|
foreach($data as $key => $val){
|
|
|
$data_goods[] = Db::name('goods') -> where("id =".$val['goods_id']) -> find();
|
|
|
}
|
|
|
}
|
|
|
dump($data_goods);die;
|
|
|
return $this -> fetch();
|
|
|
|
|
|
}
|
...
|
...
|
|