作者 anyv
1 个管道 的构建 通过 耗费 0 秒

4

@@ -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 }