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

5

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