|
@@ -42,6 +42,8 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$this->load->_model('Model_settingtest','settingtest');
|
|
$this->load->_model('Model_settingtest','settingtest');
|
|
|
$this->load->_model("Model_whlabel_bh_transfer_cr","whlabel_bh_transfer_cr");
|
|
$this->load->_model("Model_whlabel_bh_transfer_cr","whlabel_bh_transfer_cr");
|
|
|
$this->load->_model("Model_zzquque_u9","zzquque_u9");
|
|
$this->load->_model("Model_zzquque_u9","zzquque_u9");
|
|
|
|
|
+ $this->load->_model("Model_logic_zhlp","logic_zhlp");
|
|
|
|
|
+ $this->load->_model("Model_goods","goods");
|
|
|
}
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
public function _remap($arg,$arg_array)
|
|
@@ -499,7 +501,6 @@ class Whlabel_bh extends Start_Controller {
|
|
|
if(isset($post['num']))
|
|
if(isset($post['num']))
|
|
|
{
|
|
{
|
|
|
$list = array();
|
|
$list = array();
|
|
|
- $sku = $this->input->post('sku',true);
|
|
|
|
|
$category = $this->input->post('category',true);
|
|
$category = $this->input->post('category',true);
|
|
|
$list['category'] = $category;
|
|
$list['category'] = $category;
|
|
|
$list['hairtype'] = $this->input->post('hairtype',true);
|
|
$list['hairtype'] = $this->input->post('hairtype',true);
|
|
@@ -527,15 +528,13 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$list['lowe'] = $this->input->post('lowe',true);
|
|
$list['lowe'] = $this->input->post('lowe',true);
|
|
|
if($category == 127)
|
|
if($category == 127)
|
|
|
{
|
|
{
|
|
|
- $list['type'] = $this->input->post('type',true);
|
|
|
|
|
|
|
+ //$list['type'] = $this->input->post('type',true);
|
|
|
$list['headroad'] = $this->input->post('headroad',true);
|
|
$list['headroad'] = $this->input->post('headroad',true);
|
|
|
$list['density'] = $this->input->post('density',true);
|
|
$list['density'] = $this->input->post('density',true);
|
|
|
- if($list['type'] == 195 || $list['type'] == 197 || $list['type'] == 199)
|
|
|
|
|
- {
|
|
|
|
|
- $list['lacesize'] = $this->input->post('lacesize',true);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ $list['lacesize'] = $this->input->post('lacesize',true);
|
|
|
$list['lacecolor'] = $this->input->post('lacecolor',true);
|
|
$list['lacecolor'] = $this->input->post('lacecolor',true);
|
|
|
$list['lacetypes'] = $this->input->post('lacetypes',true);
|
|
$list['lacetypes'] = $this->input->post('lacetypes',true);
|
|
|
|
|
+ $list['lacetypestwo'] = $this->input->post('lacetypestwo',true);
|
|
|
}
|
|
}
|
|
|
if($category == 128)
|
|
if($category == 128)
|
|
|
{
|
|
{
|
|
@@ -584,7 +583,7 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$classid = $this->classid->sku();
|
|
$classid = $this->classid->sku();
|
|
|
$pm = $classid;
|
|
$pm = $classid;
|
|
|
$jm = $classid;
|
|
$jm = $classid;
|
|
|
- $sku = $sku;
|
|
|
|
|
|
|
+ $scsku = $classid;
|
|
|
$title = '';$features = '';$cs = array();
|
|
$title = '';$features = '';$cs = array();
|
|
|
$bmpx = array(13=>'',16=>'',18=>'',25=>'',26=>'',41=>'');
|
|
$bmpx = array(13=>'',16=>'',18=>'',25=>'',26=>'',41=>'');
|
|
|
foreach($list as $k=>$v)
|
|
foreach($list as $k=>$v)
|
|
@@ -603,7 +602,14 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$title .= $typeclass[$v]['title']." ";
|
|
$title .= $typeclass[$v]['title']." ";
|
|
|
}
|
|
}
|
|
|
$features .=$v.'-';
|
|
$features .=$v.'-';
|
|
|
- $sku[$typeclass[$v]['classid']] = $typeclass[$v]['bqsku'];
|
|
|
|
|
|
|
+ if($k == 'hairtype'){
|
|
|
|
|
+ if(!in_array($v,[163,164,165,166])){
|
|
|
|
|
+ $scsku[$typeclass[$v]['classid']] = $typeclass[$v]['bqsku'];
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $scsku[$typeclass[$v]['classid']] = $typeclass[$v]['bqsku'];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if(isset($pm[$typeclass[$v]['classid']]))
|
|
if(isset($pm[$typeclass[$v]['classid']]))
|
|
|
{
|
|
{
|
|
|
if($typeclass[$v]['title'] == '9A')
|
|
if($typeclass[$v]['title'] == '9A')
|
|
@@ -622,22 +628,43 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$clzh = explode('|',rtrim($typeclass[$v]['zh'],'|'));
|
|
$clzh = explode('|',rtrim($typeclass[$v]['zh'],'|'));
|
|
|
$clzh = $clzh[0];
|
|
$clzh = $clzh[0];
|
|
|
}
|
|
}
|
|
|
- $pm[$typeclass[$v]['classid']] = $clzh;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if($k == 'hairtype'){
|
|
|
|
|
+ if(!in_array($v,[163,164,165,166])){
|
|
|
|
|
+ $pm[$typeclass[$v]['classid']] = $clzh;
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $pm[$typeclass[$v]['classid']] = $clzh;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if(isset($jm[$typeclass[$v]['classid']]))
|
|
if(isset($jm[$typeclass[$v]['classid']]))
|
|
|
{
|
|
{
|
|
|
if($typeclass[$v]['jm'])
|
|
if($typeclass[$v]['jm'])
|
|
|
{
|
|
{
|
|
|
- $jm[$typeclass[$v]['classid']] = $typeclass[$v]['jm'];
|
|
|
|
|
|
|
+ if($k == 'hairtype'){
|
|
|
|
|
+ if(!in_array($v,[163,164,165,166])){
|
|
|
|
|
+ $jm[$typeclass[$v]['classid']] = $typeclass[$v]['jm'];
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $jm[$typeclass[$v]['classid']] = $typeclass[$v]['jm'];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ $scsku = implode("-", $scsku);
|
|
|
|
|
+ $scsku = str_replace('- ', '-', trim($scsku, '-'));
|
|
|
|
|
+ $scsku = str_replace(array('--------', '-------', '------', '-----', '----', '---', '--'), '-', $scsku);
|
|
|
|
|
+
|
|
|
$jm = array_filter($jm);//去除空值
|
|
$jm = array_filter($jm);//去除空值
|
|
|
$jm = implode("-",$jm);
|
|
$jm = implode("-",$jm);
|
|
|
- $sku = array_filter($sku);//去除空值
|
|
|
|
|
- $sku = implode("-",$sku);
|
|
|
|
|
|
|
+ $sku = $scsku;
|
|
|
$pm = array_filter($pm);//去除空值
|
|
$pm = array_filter($pm);//去除空值
|
|
|
$pm = implode(" ",$pm);
|
|
$pm = implode(" ",$pm);
|
|
|
$pm = preg_replace("/\r\n|\r|\n/",'',trim($pm,' '));
|
|
$pm = preg_replace("/\r\n|\r|\n/",'',trim($pm,' '));
|
|
@@ -815,17 +842,17 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$list['lowe'] = $this->input->post('lowe',true);
|
|
$list['lowe'] = $this->input->post('lowe',true);
|
|
|
if($category == 127)
|
|
if($category == 127)
|
|
|
{
|
|
{
|
|
|
- $list['type'] = $this->input->post('type',true);
|
|
|
|
|
|
|
+ //$list['type'] = $this->input->post('type',true);
|
|
|
$list['headroad'] = $this->input->post('headroad',true);
|
|
$list['headroad'] = $this->input->post('headroad',true);
|
|
|
$list['density'] = $this->input->post('density',true);
|
|
$list['density'] = $this->input->post('density',true);
|
|
|
- if($list['type'] == 195 || $list['type'] == 197 || $list['type'] == 199)
|
|
|
|
|
- {
|
|
|
|
|
- $list['lacesize'] = $this->input->post('lacesize',true);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $list['lacesize'] = $this->input->post('lacesize',true);
|
|
|
|
|
+
|
|
|
$list['lacecolor'] = $this->input->post('lacecolor',true);
|
|
$list['lacecolor'] = $this->input->post('lacecolor',true);
|
|
|
$list['lacetypes'] = $this->input->post('lacetypes',true);
|
|
$list['lacetypes'] = $this->input->post('lacetypes',true);
|
|
|
|
|
+ $list['lacetypestwo'] = $this->input->post('lacetypestwo',true);
|
|
|
}
|
|
}
|
|
|
- if($category == 128)
|
|
|
|
|
|
|
+ if($category == 128 || $category = 2465)
|
|
|
{
|
|
{
|
|
|
$list['lacetype'] = $this->input->post('lacetype',true);
|
|
$list['lacetype'] = $this->input->post('lacetype',true);
|
|
|
$list['haircap'] = $this->input->post('haircap',true);
|
|
$list['haircap'] = $this->input->post('haircap',true);
|
|
@@ -890,7 +917,14 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$title .= $typeclass[$v]['title']." ";
|
|
$title .= $typeclass[$v]['title']." ";
|
|
|
}
|
|
}
|
|
|
$features .=$v.'-';
|
|
$features .=$v.'-';
|
|
|
- $sku[$typeclass[$v]['classid']] = $typeclass[$v]['bqsku'];
|
|
|
|
|
|
|
+ if($k == 'hairtype'){
|
|
|
|
|
+ if(!in_array($v,[163,164,165,166])){
|
|
|
|
|
+ $sku[$typeclass[$v]['classid']] = $typeclass[$v]['bqsku'];
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $sku[$typeclass[$v]['classid']] = $typeclass[$v]['bqsku'];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if(isset($pm[$typeclass[$v]['classid']]))
|
|
if(isset($pm[$typeclass[$v]['classid']]))
|
|
|
{
|
|
{
|
|
|
if($typeclass[$v]['title'] == '9A')
|
|
if($typeclass[$v]['title'] == '9A')
|
|
@@ -909,14 +943,29 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$clzh = explode('|',rtrim($typeclass[$v]['zh'],'|'));
|
|
$clzh = explode('|',rtrim($typeclass[$v]['zh'],'|'));
|
|
|
$clzh = $clzh[0];
|
|
$clzh = $clzh[0];
|
|
|
}
|
|
}
|
|
|
- $pm[$typeclass[$v]['classid']] = $clzh;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if($k == 'hairtype'){
|
|
|
|
|
+ if(!in_array($v,[163,164,165,166])){
|
|
|
|
|
+ $pm[$typeclass[$v]['classid']] = $clzh;
|
|
|
|
|
+ }
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $pm[$typeclass[$v]['classid']] = $clzh;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if(isset($jm[$typeclass[$v]['classid']]))
|
|
if(isset($jm[$typeclass[$v]['classid']]))
|
|
|
{
|
|
{
|
|
|
if($typeclass[$v]['jm'])
|
|
if($typeclass[$v]['jm'])
|
|
|
{
|
|
{
|
|
|
- $jm[$typeclass[$v]['classid']] = $typeclass[$v]['jm'];
|
|
|
|
|
|
|
+ if($k == 'hairtype'){
|
|
|
|
|
+ if(!in_array($v,[163,164,165,166])){
|
|
|
|
|
+ $jm[$typeclass[$v]['classid']] = $typeclass[$v]['jm'];
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $jm[$typeclass[$v]['classid']] = $typeclass[$v]['jm'];
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -1283,15 +1332,14 @@ class Whlabel_bh extends Start_Controller {
|
|
|
$list['lowe'] = $this->input->post('lowe',true);
|
|
$list['lowe'] = $this->input->post('lowe',true);
|
|
|
if($category == 127)
|
|
if($category == 127)
|
|
|
{
|
|
{
|
|
|
- $list['type'] = $this->input->post('type',true);
|
|
|
|
|
|
|
+ //$list['type'] = $this->input->post('type',true);
|
|
|
$list['headroad'] = $this->input->post('headroad',true);
|
|
$list['headroad'] = $this->input->post('headroad',true);
|
|
|
$list['density'] = $this->input->post('density',true);
|
|
$list['density'] = $this->input->post('density',true);
|
|
|
- if($list['type'] == 195 || $list['type'] == 197 || $list['type'] == 199)
|
|
|
|
|
- {
|
|
|
|
|
- $list['lacesize'] = $this->input->post('lacesize',true);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ $list['lacesize'] = $this->input->post('lacesize',true);
|
|
|
$list['lacecolor'] = $this->input->post('lacecolor',true);
|
|
$list['lacecolor'] = $this->input->post('lacecolor',true);
|
|
|
$list['lacetypes'] = $this->input->post('lacetypes',true);
|
|
$list['lacetypes'] = $this->input->post('lacetypes',true);
|
|
|
|
|
+ $list['lacetypestwo'] = $this->input->post('lacetypestwo',true);
|
|
|
}
|
|
}
|
|
|
if($category == 128)
|
|
if($category == 128)
|
|
|
{
|
|
{
|