|
@@ -74,13 +74,13 @@ class U9tools extends Start_Controller
|
|
|
}
|
|
|
}
|
|
|
$en_title = trim($en_title);
|
|
|
- var_dump($en_title);
|
|
|
- die;
|
|
|
+
|
|
|
$sku = "-".implode("-",$sku_tmp_arr)."-";
|
|
|
|
|
|
$org_sku = implode("-",$final_list);
|
|
|
|
|
|
$u9_info = $this->logic_u9tools->getOneU9bmHasGift($org_sku,$classid,$typeclass);
|
|
|
+ $u9_info['title'] = $en_title;
|
|
|
|
|
|
$token = $this->settingtest->get_yytoken_130();
|
|
|
$res = $this->apiyyv1->cxLp(
|
|
@@ -100,14 +100,31 @@ class U9tools extends Start_Controller
|
|
|
$res = $this->apiyyv1->cjLp(
|
|
|
[
|
|
|
'ztcode'=>'001',
|
|
|
+ 'owner_code'=>'130',
|
|
|
'list'=> [
|
|
|
'jm'=>$u9_info['jm'],
|
|
|
'zh'=>$u9_info['zh'],
|
|
|
'bm'=>$u9_info['bm'],
|
|
|
- 'title'=>'',
|
|
|
+ 'title'=>$u9_info['title'],
|
|
|
]
|
|
|
],$token);
|
|
|
-
|
|
|
+ if(empty($res[0]['Data'])){
|
|
|
+ echo json_encode(['code' => -1,'msg' => 'u9创建失败,请到u9手动创建','data' => $u9_info]);exit;
|
|
|
+ }
|
|
|
+ $token = $this->settingtest->get_yytoken_130();
|
|
|
+ $rr = $this->apiyyv1->tbLp([
|
|
|
+ 'ztcode'=>'001',
|
|
|
+ 'owner_code'=>'130',
|
|
|
+ 'list'=> [
|
|
|
+ 'jm'=>$u9_info['jm'],
|
|
|
+ 'zh'=>$u9_info['zh'],
|
|
|
+ 'bm'=>$u9_info['bm'],
|
|
|
+ 'title'=>$u9_info['title'],
|
|
|
+ ]
|
|
|
+ ],$token);
|
|
|
+
|
|
|
+
|
|
|
+ echo json_encode(['code' => 1,'msg' => '创建成功','data' => $u9_info,'res' => $rr]);exit;
|
|
|
|
|
|
}
|
|
|
$this->_Template('u9_product',$this->data);
|