...
|
...
|
@@ -92,6 +92,8 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
$data_goods[$key]['pricing0'] = $pricing[0];
|
|
|
$data_goods[$key]['pricing1'] = $pricing[1];
|
|
|
}
|
|
|
}else{
|
|
|
$data_goods = '';
|
|
|
}
|
|
|
$this -> assign('data_count',$data_count);
|
|
|
$this -> assign('data_goods',$data_goods);
|
...
|
...
|
@@ -118,6 +120,10 @@ class PersonalcenterController extends WeChatBaseController{ |
|
|
foreach($data as $key => $val){
|
|
|
$data_goods[] = Db::name('goods') -> where('id',$val['goods_id']) -> find();
|
|
|
}
|
|
|
foreach($data_goods as $key => $val){
|
|
|
$classification_name = Db::name('classification') -> where('id',$val['classify_id']) -> find();
|
|
|
$data_goods[$key]['classification_name'] = $classification_name['name'];
|
|
|
}
|
|
|
dump($data_goods);die;
|
|
|
return $this -> fetch();
|
|
|
|
...
|
...
|
|