|
@@ -18,7 +18,6 @@ class IndexController extends WeChatBaseController |
|
@@ -18,7 +18,6 @@ class IndexController extends WeChatBaseController |
18
|
* 显示首页
|
18
|
* 显示首页
|
19
|
*/
|
19
|
*/
|
20
|
public function index(){
|
20
|
public function index(){
|
21
|
-
|
|
|
22
|
//显示分类
|
21
|
//显示分类
|
23
|
$data_classif= Db::name('classification') -> select();
|
22
|
$data_classif= Db::name('classification') -> select();
|
24
|
$this -> assign('data_classif',$data_classif);
|
23
|
$this -> assign('data_classif',$data_classif);
|
|
@@ -139,8 +138,6 @@ class IndexController extends WeChatBaseController |
|
@@ -139,8 +138,6 @@ class IndexController extends WeChatBaseController |
139
|
$data_goods = Db::name('goods') -> where('uid',$salesman_id['uid']) -> where('is_out',1) -> order("sort desc") -> limit(6) -> select() -> toArray();
|
138
|
$data_goods = Db::name('goods') -> where('uid',$salesman_id['uid']) -> where('is_out',1) -> order("sort desc") -> limit(6) -> select() -> toArray();
|
140
|
}
|
139
|
}
|
141
|
}
|
140
|
}
|
142
|
-
|
|
|
143
|
-
|
|
|
144
|
}
|
141
|
}
|
145
|
}else{
|
142
|
}else{
|
146
|
$data_id = $this -> request -> param();
|
143
|
$data_id = $this -> request -> param();
|
|
@@ -190,7 +187,6 @@ class IndexController extends WeChatBaseController |
|
@@ -190,7 +187,6 @@ class IndexController extends WeChatBaseController |
190
|
$data_inser['is_pro'] = 0;
|
187
|
$data_inser['is_pro'] = 0;
|
191
|
Db::name('my_user') -> insert($data_inser);
|
188
|
Db::name('my_user') -> insert($data_inser);
|
192
|
}
|
189
|
}
|
193
|
-
|
|
|
194
|
}
|
190
|
}
|
195
|
if(empty($data_goods)) {
|
191
|
if(empty($data_goods)) {
|
196
|
$data_goods = null;
|
192
|
$data_goods = null;
|