TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripGrouptoursProductUploadRequest req = new AlitripGrouptoursProductUploadRequest();
req.setGoTrafficType(1L);
req.setTripDay(1L);
req.setSubStock(0L);
req.setWapDesc("<wapDesc><shortDesc>标题1</shortDesc> <txt>描述1</txt> <img>图片路径1</img> <shortDesc>标题2</shortDesc> <txt>描述2</txt> <img>图片路径2</img> </wapDesc>");
req.setBackTrafficType(1L);
req.setItineraries("<ITINERARY><ACTIVITY><title>活动1</title> <txt>活动描述1</txt> <img>活动图片链接1-1</img> <img>活动图片链接1-2</img> <hour>3</hour></ACTIVITY> <ACTIVITY><title>活动 2</title> <txt>活动描述2</txt> <img>活动图片链接2</img></ACTIVITY></ITINERARY>");
req.setDescXml("<DESC><HIGHLIGHT><title>亮点1</title> <txt>亮点描述1</txt> <img>亮点图片链接1</img></HIGHLIGHT> <HIGHLIGHT><title>亮点2</title> <txt>亮点描述2</txt> <img>亮点图片链接2</img></HIGHLIGHT></DESC>");
req.setFeeExclude("费用不含1,费用不含2");
req.setOrderInfo("须知1,须知2");
req.setConfirmTime(1L);
req.setTitle("商品标题");
req.setRouteType(1L);
req.setRefundRegulations("30_30_0,30_15_5,14_7_15,6_4_70,3_1_85,1_1_90");
List<AlitripGrouptoursProductUploadRequest.GatherPlaceInfo> list2 = new ArrayList<AlitripGrouptoursProductUploadRequest.GatherPlaceInfo>();
AlitripGrouptoursProductUploadRequest.GatherPlaceInfo obj3 = new AlitripGrouptoursProductUploadRequest.GatherPlaceInfo();
list2.add(obj3);
obj3.setName("上海迪士尼度假区");
obj3.setPoi("120.111,30.222");
obj3.setPoiResource("AMAP");
req.setGatherPlaces(list2);
req.setFeeInclude("费用包含1,费用包含2");
req.setConfirmType(1L);
req.setItemCustomTag("美食");
req.setOutProductId("1111");
List<AlitripGrouptoursProductUploadRequest.StructItinerary> list5 = new ArrayList<AlitripGrouptoursProductUploadRequest.StructItinerary>();
AlitripGrouptoursProductUploadRequest.StructItinerary obj6 = new AlitripGrouptoursProductUploadRequest.StructItinerary();
list5.add(obj6);
obj6.setDayOrder(1L);
List<AlitripGrouptoursProductUploadRequest.ItineraryActivity> list9 = new ArrayList<AlitripGrouptoursProductUploadRequest.ItineraryActivity>();
AlitripGrouptoursProductUploadRequest.ItineraryActivity obj10 = new AlitripGrouptoursProductUploadRequest.ItineraryActivity();
list9.add(obj10);
obj10.setTitle("活动标题");
obj10.setTxt("活动内容文本描述");
obj10.setImages("http:xxx.com/jpg1, http:xxx.com/jpg2");
obj10.setHour(2L);
list7.setActivities(list9);
req.setStructItineraries(list5);
req.setToLocations("东京,京都");
req.setTripNight(1L);
req.setPicUrls("https://img.daily.taobaocdn.net/imgextra/i3/2024098454/TB2C4VXXXXXXXc1XXXXXXXXXXXX_!!2024098454.jpg,http://ww1.sinaimg.cn/large/005EDdjYgw1fanv4d823dj31gs0z6qb8.jpg");
req.setItemId(12345L);
req.setReserveLimit("1_18_00");
req.setRefundType(0L);
req.setFromLocations("东京");
req.setDescHtml("PC端详情描述");
req.setSubTitles("亮点1,亮点2,亮点3");
AlitripGrouptoursProductUploadRequest.ElectronContract obj11 = new AlitripGrouptoursProductUploadRequest.ElectronContract();
obj11.setWillJoinGroup(1L);
obj11.setSupportElectron(0L);
obj11.setGroupFailArrange("1,2");
req.setElectronContract(obj11);
req.setTravellerTemplateId(111L);
req.setPurePlay(0L);
req.setIsOverseasTour(0L);
AlitripGrouptoursProductUploadResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlitripGrouptoursProductUploadRequest req = new AlitripGrouptoursProductUploadRequest();
req.GoTrafficType = 1L;
req.TripDay = 1L;
req.SubStock = 0L;
req.WapDesc = "<wapDesc><shortDesc>标题1</shortDesc> <txt>描述1</txt> <img>图片路径1</img> <shortDesc>标题2</shortDesc> <txt>描述2</txt> <img>图片路径2</img> </wapDesc>";
req.BackTrafficType = 1L;
req.Itineraries = "<ITINERARY><ACTIVITY><title>活动1</title> <txt>活动描述1</txt> <img>活动图片链接1-1</img> <img>活动图片链接1-2</img> <hour>3</hour></ACTIVITY> <ACTIVITY><title>活动 2</title> <txt>活动描述2</txt> <img>活动图片链接2</img></ACTIVITY></ITINERARY>";
req.DescXml = "<DESC><HIGHLIGHT><title>亮点1</title> <txt>亮点描述1</txt> <img>亮点图片链接1</img></HIGHLIGHT> <HIGHLIGHT><title>亮点2</title> <txt>亮点描述2</txt> <img>亮点图片链接2</img></HIGHLIGHT></DESC>";
req.FeeExclude = "费用不含1,费用不含2";
req.OrderInfo = "须知1,须知2";
req.ConfirmTime = 1L;
req.Title = "商品标题";
req.RouteType = 1L;
req.RefundRegulations = "30_30_0,30_15_5,14_7_15,6_4_70,3_1_85,1_1_90";
List<AlitripGrouptoursProductUploadRequest.GatherPlaceInfoDomain> list2 = new List<AlitripGrouptoursProductUploadRequest.GatherPlaceInfoDomain>();
AlitripGrouptoursProductUploadRequest.GatherPlaceInfoDomain obj3 = new AlitripGrouptoursProductUploadRequest.GatherPlaceInfoDomain();
list2.Add(obj3);
obj3.Name = "上海迪士尼度假区";
obj3.Poi = "120.111,30.222";
obj3.PoiResource = "AMAP";
req.GatherPlaces_ = list2;
req.FeeInclude = "费用包含1,费用包含2";
req.ConfirmType = 1L;
req.ItemCustomTag = "美食";
req.OutProductId = "1111";
List<AlitripGrouptoursProductUploadRequest.StructItineraryDomain> list5 = new List<AlitripGrouptoursProductUploadRequest.StructItineraryDomain>();
AlitripGrouptoursProductUploadRequest.StructItineraryDomain obj6 = new AlitripGrouptoursProductUploadRequest.StructItineraryDomain();
list5.Add(obj6);
obj6.DayOrder = 1L;
List<AlitripGrouptoursProductUploadRequest.ItineraryActivityDomain> list8 = new List<AlitripGrouptoursProductUploadRequest.ItineraryActivityDomain>();
AlitripGrouptoursProductUploadRequest.ItineraryActivityDomain obj9 = new AlitripGrouptoursProductUploadRequest.ItineraryActivityDomain();
list8.Add(obj9);
obj9.Title = "活动标题";
obj9.Txt = "活动内容文本描述";
obj9.Images = "http:xxx.com/jpg1, http:xxx.com/jpg2";
obj9.Hour = 2L;
obj6.Activities= list8;
req.StructItineraries_ = list5;
req.ToLocations = "东京,京都";
req.TripNight = 1L;
req.PicUrls = "https://img.daily.taobaocdn.net/imgextra/i3/2024098454/TB2C4VXXXXXXXc1XXXXXXXXXXXX_!!2024098454.jpg,http://ww1.sinaimg.cn/large/005EDdjYgw1fanv4d823dj31gs0z6qb8.jpg";
req.ItemId = 12345L;
req.ReserveLimit = "1_18_00";
req.RefundType = 0L;
req.FromLocations = "东京";
req.DescHtml = "PC端详情描述";
req.SubTitles = "亮点1,亮点2,亮点3";
AlitripGrouptoursProductUploadRequest.ElectronContractDomain obj10 = new AlitripGrouptoursProductUploadRequest.ElectronContractDomain();
obj10.WillJoinGroup = 1L;
obj10.SupportElectron = 0L;
obj10.GroupFailArrange = "1,2";
req.ElectronContract_ = obj10;
req.TravellerTemplateId = 111L;
req.PurePlay = 0L;
req.IsOverseasTour = 0L;
AlitripGrouptoursProductUploadResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlitripGrouptoursProductUploadRequest;
$req->setGoTrafficType("1");
$req->setTripDay("1");
$req->setSubStock("0");
$req->setWapDesc("<wapDesc><shortDesc>标题1</shortDesc> <txt>描述1</txt> <img>图片路径1</img> <shortDesc>标题2</shortDesc> <txt>描述2</txt> <img>图片路径2</img> </wapDesc>");
$req->setBackTrafficType("1");
$req->setItineraries("<ITINERARY><ACTIVITY><title>活动1</title> <txt>活动描述1</txt> <img>活动图片链接1-1</img> <img>活动图片链接1-2</img> <hour>3</hour></ACTIVITY> <ACTIVITY><title>活动 2</title> <txt>活动描述2</txt> <img>活动图片链接2</img></ACTIVITY></ITINERARY>");
$req->setDescXml("<DESC><HIGHLIGHT><title>亮点1</title> <txt>亮点描述1</txt> <img>亮点图片链接1</img></HIGHLIGHT> <HIGHLIGHT><title>亮点2</title> <txt>亮点描述2</txt> <img>亮点图片链接2</img></HIGHLIGHT></DESC>");
$req->setFeeExclude("费用不含1,费用不含2");
$req->setOrderInfo("须知1,须知2");
$req->setConfirmTime("1");
$req->setTitle("商品标题");
$req->setRouteType("1");
$req->setRefundRegulations("30_30_0,30_15_5,14_7_15,6_4_70,3_1_85,1_1_90");
$gather_places = new GatherPlaceInfo;
$gather_places->name="上海迪士尼度假区";
$gather_places->poi="120.111,30.222";
$gather_places->poi_resource="AMAP";
$req->setGatherPlaces(json_encode($gather_places));
$req->setFeeInclude("费用包含1,费用包含2");
$req->setConfirmType("1");
$req->setItemCustomTag("美食");
$req->setOutProductId("1111");
$struct_itineraries = new StructItinerary;
$struct_itineraries->day_order="1";
$activities = new ItineraryActivity;
$activities->title="活动标题";
$activities->txt="活动内容文本描述";
$activities->images="http:xxx.com/jpg1, http:xxx.com/jpg2";
$activities->hour="2";
$struct_itineraries->activities = $activities;
$req->setStructItineraries(json_encode($struct_itineraries));
$req->setToLocations("东京,京都");
$req->setTripNight("1");
$req->setPicUrls("https://img.daily.taobaocdn.net/imgextra/i3/2024098454/TB2C4VXXXXXXXc1XXXXXXXXXXXX_!!2024098454.jpg,http://ww1.sinaimg.cn/large/005EDdjYgw1fanv4d823dj31gs0z6qb8.jpg");
$req->setItemId("12345");
$req->setReserveLimit("1_18_00");
$req->setRefundType("0");
$req->setFromLocations("东京");
$req->setDescHtml("PC端详情描述");
$req->setSubTitles("亮点1,亮点2,亮点3");
$electron_contract = new ElectronContract;
$electron_contract->will_join_group="1";
$electron_contract->support_electron="0";
$electron_contract->group_fail_arrange="1,2";
$req->setElectronContract(json_encode($electron_contract));
$req->setTravellerTemplateId("111");
$req->setPurePlay("0");
$req->setIsOverseasTour("0");
$resp = $c->execute($req, $sessionKey);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alitrip.grouptours.product.upload' \
-d 'partner_id=apidoc' \
-d 'session=aabf9857-840d-4d8e-86fb-9df26c10fd84' \
-d 'sign=60C19305EBE6CFA4B8ACE6A13DA7D200' \
-d 'sign_method=hmac' \
-d 'timestamp=2024-11-23+21%3A06%3A51' \
-d 'v=2.0' \
-d 'back_traffic_type=1' \
-d 'confirm_time=1' \
-d 'confirm_type=1' \
-d 'desc_html=PC%E7%AB%AF%E8%AF%A6%E6%83%85%E6%8F%8F%E8%BF%B0' \
-d 'desc_xml=%3CDESC%3E%3CHIGHLIGHT%3E%3Ctitle%3E%E4%BA%AE%E7%82%B91%3C%2Ftitle%3E+%3Ctxt%3E%E4%BA%AE%E7%82%B9%E6%8F%8F%E8%BF%B01%3C%2Ftxt%3E+%3Cimg%3E%E4%BA%AE%E7%82%B9%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A51%3C%2Fimg%3E%3C%2FHIGHLIGHT%3E+%3CHIGHLIGHT%3E%3Ctitle%3E%E4%BA%AE%E7%82%B92%3C%2Ftitle%3E+%3Ctxt%3E%E4%BA%AE%E7%82%B9%E6%8F%8F%E8%BF%B02%3C%2Ftxt%3E+%3Cimg%3E%E4%BA%AE%E7%82%B9%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A52%3C%2Fimg%3E%3C%2FHIGHLIGHT%3E%3C%2FDESC%3E' \
-d 'electron_contract=null' \
-d 'fee_exclude=%E8%B4%B9%E7%94%A8%E4%B8%8D%E5%90%AB1%2C%E8%B4%B9%E7%94%A8%E4%B8%8D%E5%90%AB2' \
-d 'fee_include=%E8%B4%B9%E7%94%A8%E5%8C%85%E5%90%AB1%2C%E8%B4%B9%E7%94%A8%E5%8C%85%E5%90%AB2' \
-d 'from_locations=%E4%B8%9C%E4%BA%AC' \
-d 'gather_places=null' \
-d 'go_traffic_type=1' \
-d 'is_overseas_tour=0' \
-d 'item_custom_tag=%E7%BE%8E%E9%A3%9F' \
-d 'item_id=12345' \
-d 'itineraries=%3CITINERARY%3E%3CACTIVITY%3E%3Ctitle%3E%E6%B4%BB%E5%8A%A81%3C%2Ftitle%3E+%3Ctxt%3E%E6%B4%BB%E5%8A%A8%E6%8F%8F%E8%BF%B01%3C%2Ftxt%3E+%3Cimg%3E%E6%B4%BB%E5%8A%A8%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A51-1%3C%2Fimg%3E+%3Cimg%3E%E6%B4%BB%E5%8A%A8%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A51-2%3C%2Fimg%3E+%3Chour%3E3%3C%2Fhour%3E%3C%2FACTIVITY%3E+%3CACTIVITY%3E%3Ctitle%3E%E6%B4%BB%E5%8A%A8+2%3C%2Ftitle%3E+%3Ctxt%3E%E6%B4%BB%E5%8A%A8%E6%8F%8F%E8%BF%B02%3C%2Ftxt%3E+%3Cimg%3E%E6%B4%BB%E5%8A%A8%E5%9B%BE%E7%89%87%E9%93%BE%E6%8E%A52%3C%2Fimg%3E%3C%2FACTIVITY%3E%3C%2FITINERARY%3E' \
-d 'order_info=%E9%A1%BB%E7%9F%A51%2C%E9%A1%BB%E7%9F%A52' \
-d 'out_product_id=1111' \
-d 'pic_urls=https%3A%2F%2Fimg.daily.taobaocdn.net%2Fimgextra%2Fi3%2F2024098454%2FTB2C4VXXXXXXXc1XXXXXXXXXXXX_%21%212024098454.jpg%2Chttp%3A%2F%2Fww1.sinaimg.cn%2Flarge%2F005EDdjYgw1fanv4d823dj31gs0z6qb8.jpg' \
-d 'pure_play=0' \
-d 'refund_regulations=30_30_0%2C30_15_5%2C14_7_15%2C6_4_70%2C3_1_85%2C1_1_90' \
-d 'refund_type=0' \
-d 'reserve_limit=1_18_00' \
-d 'route_type=1' \
-d 'struct_itineraries=null' \
-d 'sub_stock=0' \
-d 'sub_titles=%E4%BA%AE%E7%82%B91%2C%E4%BA%AE%E7%82%B92%2C%E4%BA%AE%E7%82%B93' \
-d 'title=%E5%95%86%E5%93%81%E6%A0%87%E9%A2%98' \
-d 'to_locations=%E4%B8%9C%E4%BA%AC%2C%E4%BA%AC%E9%83%BD' \
-d 'traveller_template_id=111' \
-d 'trip_day=1' \
-d 'trip_night=1' \
-d 'wap_desc=%3CwapDesc%3E%3CshortDesc%3E%E6%A0%87%E9%A2%981%3C%2FshortDesc%3E+%3Ctxt%3E%E6%8F%8F%E8%BF%B01%3C%2Ftxt%3E+%3Cimg%3E%E5%9B%BE%E7%89%87%E8%B7%AF%E5%BE%841%3C%2Fimg%3E+%3CshortDesc%3E%E6%A0%87%E9%A2%982%3C%2FshortDesc%3E+%3Ctxt%3E%E6%8F%8F%E8%BF%B02%3C%2Ftxt%3E+%3Cimg%3E%E5%9B%BE%E7%89%87%E8%B7%AF%E5%BE%842%3C%2Fimg%3E+%3C%2FwapDesc%3E'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlitripGrouptoursProductUploadRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.go_traffic_type=1
req.trip_day=1
req.sub_stock=0
req.wap_desc="<wapDesc><shortDesc>标题1</shortDesc> <txt>描述1</txt> <img>图片路径1</img> <shortDesc>标题2</shortDesc> <txt>描述2</txt> <img>图片路径2</img> </wapDesc>"
req.back_traffic_type=1
req.itineraries="<ITINERARY><ACTIVITY><title>活动1</title> <txt>活动描述1</txt> <img>活动图片链接1-1</img> <img>活动图片链接1-2</img> <hour>3</hour></ACTIVITY> <ACTIVITY><title>活动 2</title> <txt>活动描述2</txt> <img>活动图片链接2</img></ACTIVITY></ITINERARY>"
req.desc_xml="<DESC><HIGHLIGHT><title>亮点1</title> <txt>亮点描述1</txt> <img>亮点图片链接1</img></HIGHLIGHT> <HIGHLIGHT><title>亮点2</title> <txt>亮点描述2</txt> <img>亮点图片链接2</img></HIGHLIGHT></DESC>"
req.fee_exclude="费用不含1,费用不含2"
req.order_info="须知1,须知2"
req.confirm_time=1
req.title="商品标题"
req.route_type=1
req.refund_regulations="30_30_0,30_15_5,14_7_15,6_4_70,3_1_85,1_1_90"
req.gather_places=""
req.fee_include="费用包含1,费用包含2"
req.confirm_type=1
req.item_custom_tag="美食"
req.out_product_id="1111"
req.struct_itineraries=""
req.to_locations="东京,京都"
req.trip_night=1
req.pic_urls="https://img.daily.taobaocdn.net/imgextra/i3/2024098454/TB2C4VXXXXXXXc1XXXXXXXXXXXX_!!2024098454.jpg,http://ww1.sinaimg.cn/large/005EDdjYgw1fanv4d823dj31gs0z6qb8.jpg"
req.item_id=12345
req.reserve_limit="1_18_00"
req.refund_type=0
req.from_locations="东京"
req.desc_html="PC端详情描述"
req.sub_titles="亮点1,亮点2,亮点3"
req.electron_contract=""
req.traveller_template_id=111
req.pure_play=0
req.is_overseas_tour=0
try:
resp= req.getResponse(sessionkey)
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alitrip.grouptours.product.upload");
add_param(pRequest,"go_traffic_type","1");
add_param(pRequest,"trip_day","1");
add_param(pRequest,"sub_stock","0");
add_param(pRequest,"wap_desc","<wapDesc><shortDesc>标题1</shortDesc> <txt>描述1</txt> <img>图片路径1</img> <shortDesc>标题2</shortDesc> <txt>描述2</txt> <img>图片路径2</img> </wapDesc>");
add_param(pRequest,"back_traffic_type","1");
add_param(pRequest,"itineraries","<ITINERARY><ACTIVITY><title>活动1</title> <txt>活动描述1</txt> <img>活动图片链接1-1</img> <img>活动图片链接1-2</img> <hour>3</hour></ACTIVITY> <ACTIVITY><title>活动 2</title> <txt>活动描述2</txt> <img>活动图片链接2</img></ACTIVITY></ITINERARY>");
add_param(pRequest,"desc_xml","<DESC><HIGHLIGHT><title>亮点1</title> <txt>亮点描述1</txt> <img>亮点图片链接1</img></HIGHLIGHT> <HIGHLIGHT><title>亮点2</title> <txt>亮点描述2</txt> <img>亮点图片链接2</img></HIGHLIGHT></DESC>");
add_param(pRequest,"fee_exclude","费用不含1,费用不含2");
add_param(pRequest,"order_info","须知1,须知2");
add_param(pRequest,"confirm_time","1");
add_param(pRequest,"title","商品标题");
add_param(pRequest,"route_type","1");
add_param(pRequest,"refund_regulations","30_30_0,30_15_5,14_7_15,6_4_70,3_1_85,1_1_90");
add_param(pRequest,"gather_places","数据结构JSON示例");
add_param(pRequest,"fee_include","费用包含1,费用包含2");
add_param(pRequest,"confirm_type","1");
add_param(pRequest,"item_custom_tag","美食");
add_param(pRequest,"out_product_id","1111");
add_param(pRequest,"struct_itineraries","数据结构JSON示例");
add_param(pRequest,"to_locations","东京,京都");
add_param(pRequest,"trip_night","1");
add_param(pRequest,"pic_urls","https://img.daily.taobaocdn.net/imgextra/i3/2024098454/TB2C4VXXXXXXXc1XXXXXXXXXXXX_!!2024098454.jpg,http://ww1.sinaimg.cn/large/005EDdjYgw1fanv4d823dj31gs0z6qb8.jpg");
add_param(pRequest,"item_id","12345");
add_param(pRequest,"reserve_limit","1_18_00");
add_param(pRequest,"refund_type","0");
add_param(pRequest,"from_locations","东京");
add_param(pRequest,"desc_html","PC端详情描述");
add_param(pRequest,"sub_titles","亮点1,亮点2,亮点3");
add_param(pRequest,"electron_contract","数据结构JSON示例");
add_param(pRequest,"traveller_template_id","111");
add_param(pRequest,"pure_play","0");
add_param(pRequest,"is_overseas_tour","0");
pResponse = top_execute(pClient,pRequest,sessionKey);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alitrip.grouptours.product.upload', {
'go_traffic_type':'1',
'trip_day':'1',
'sub_stock':'0',
'wap_desc':'<wapDesc><shortDesc>标题1</shortDesc> <txt>描述1</txt> <img>图片路径1</img> <shortDesc>标题2</shortDesc> <txt>描述2</txt> <img>图片路径2</img> </wapDesc>',
'back_traffic_type':'1',
'itineraries':'<ITINERARY><ACTIVITY><title>活动1</title> <txt>活动描述1</txt> <img>活动图片链接1-1</img> <img>活动图片链接1-2</img> <hour>3</hour></ACTIVITY> <ACTIVITY><title>活动 2</title> <txt>活动描述2</txt> <img>活动图片链接2</img></ACTIVITY></ITINERARY>',
'desc_xml':'<DESC><HIGHLIGHT><title>亮点1</title> <txt>亮点描述1</txt> <img>亮点图片链接1</img></HIGHLIGHT> <HIGHLIGHT><title>亮点2</title> <txt>亮点描述2</txt> <img>亮点图片链接2</img></HIGHLIGHT></DESC>',
'fee_exclude':'费用不含1,费用不含2',
'order_info':'须知1,须知2',
'confirm_time':'1',
'title':'商品标题',
'route_type':'1',
'refund_regulations':'30_30_0,30_15_5,14_7_15,6_4_70,3_1_85,1_1_90',
'gather_places':'数据结构JSON示例',
'fee_include':'费用包含1,费用包含2',
'confirm_type':'1',
'item_custom_tag':'美食',
'out_product_id':'1111',
'struct_itineraries':'数据结构JSON示例',
'to_locations':'东京,京都',
'trip_night':'1',
'pic_urls':'https://img.daily.taobaocdn.net/imgextra/i3/2024098454/TB2C4VXXXXXXXc1XXXXXXXXXXXX_!!2024098454.jpg,http://ww1.sinaimg.cn/large/005EDdjYgw1fanv4d823dj31gs0z6qb8.jpg',
'item_id':'12345',
'reserve_limit':'1_18_00',
'refund_type':'0',
'from_locations':'东京',
'desc_html':'PC端详情描述',
'sub_titles':'亮点1,亮点2,亮点3',
'electron_contract':'数据结构JSON示例',
'traveller_template_id':'111',
'pure_play':'0',
'is_overseas_tour':'0'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})