|
|
@@ -229,11 +229,19 @@ class Goodimglibrary extends Start_Controller {
|
|
|
if(isset($post['size'])){
|
|
|
$post['size'] = trim($post['size'],",");
|
|
|
}
|
|
|
+ $res = $this->logic_zhlp->sortByName($post);
|
|
|
+ if($res['code'] != 1){
|
|
|
+ echo json_encode(['success' => false,'msg' => $res['msg']]);exit;
|
|
|
+ }
|
|
|
+ if(empty($res)){
|
|
|
+ echo json_encode(['success' => false,'msg' => '分类异常']);exit;
|
|
|
+ }
|
|
|
+ $final_list = $res['data'];
|
|
|
$typeclass = $this->logic_u9tools->getTypeClass();
|
|
|
|
|
|
$classid = $this->logic_u9tools->getClass();
|
|
|
$scsku = $classid;
|
|
|
- foreach($post as $k=>$v){
|
|
|
+ foreach($final_list as $k=>$v){
|
|
|
if (!empty($v)) {
|
|
|
$type_info = $this->typeclass->read($v);
|
|
|
$scsku[$type_info['classid']] = $type_info['bqsku'];
|
|
|
@@ -244,14 +252,7 @@ class Goodimglibrary extends Start_Controller {
|
|
|
$scsku = str_replace(array('--------', '-------', '------', '-----', '----', '---', '--'), '-', $scsku);
|
|
|
|
|
|
|
|
|
- $res = $this->logic_zhlp->sortByName($post);
|
|
|
- if($res['code'] != 1){
|
|
|
- echo json_encode(['success' => false,'msg' => $res['msg']]);exit;
|
|
|
- }
|
|
|
- if(empty($res)){
|
|
|
- echo json_encode(['success' => false,'msg' => '分类异常']);exit;
|
|
|
- }
|
|
|
- $final_list = $res['data'];
|
|
|
+
|
|
|
|
|
|
$tmp_arr = array_values($final_list);
|
|
|
$size = array_pop($tmp_arr);
|
|
|
@@ -270,7 +271,7 @@ class Goodimglibrary extends Start_Controller {
|
|
|
}
|
|
|
|
|
|
$en_title = "";
|
|
|
- foreach($post as $k=>$v){
|
|
|
+ foreach($final_list as $k=>$v){
|
|
|
if(in_array($v,[163,164,165,166])){
|
|
|
continue;
|
|
|
}
|