正在显示
1 个修改的文件
包含
9 行增加
和
0 行删除
@@ -27,6 +27,15 @@ class PersonalcenterController extends WeChatBaseController{ | @@ -27,6 +27,15 @@ class PersonalcenterController extends WeChatBaseController{ | ||
27 | */ | 27 | */ |
28 | public function personal_collect(){ | 28 | public function personal_collect(){ |
29 | 29 | ||
30 | + $uid = cmf_get_current_user_id(); | ||
31 | + $data = Db::name('collect') -> where("uid =".$uid) -> select(); | ||
32 | + $data_count = count($data); | ||
33 | + if(!empty($data)){ | ||
34 | + foreach($data as $key => $val){ | ||
35 | + $data_goods[] = Db::name('goods') -> where("id =".$val['goods_id']) -> find(); | ||
36 | + } | ||
37 | + } | ||
38 | + dump($data_goods);die; | ||
30 | return $this -> fetch(); | 39 | return $this -> fetch(); |
31 | 40 | ||
32 | } | 41 | } |
-
请 注册 或 登录 后发表评论