[TOC=3,3]
### 拼团中心
~~~[api]
post:/index.php?ctl=PinTuan&met=index&typ=json&ua=wap
*string:u#u
*string:k#k
*string:cat_id#cat_id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"category": [
{
"cat_id": "179",
"cat_name": "苹果手机"
},
{
"cat_id": "178",
"cat_name": "登山"
}
],
"banner": [
{
"image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180402/1522649612927680.jpg",
"link": "https://www.baidu.com/"
},
{
"image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180402/1522650782584744.jpg",
"link": "阿迪达斯"
},
{
"image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180402/1522650789819304.jpg",
"link": "口红"
},
{
"image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180402/1522650798386206.jpg",
"link": "衣服"
}
],
"recommend": [],
"goods": [
{
"id": "38",
"shop_id": "2",
"user_id": "10003",
"name": "周一拼团",
"person_num": "2",
"start_time": "2018-04-09 16:00:00",
"end_time": "2018-04-11 18:00:00",
"created_time": "2018-04-09 15:32:21",
"status": "1",
"is_recommend": "0",
"detail": {
"id": "38",
"pintuan_id": "38",
"goods_id": "61",
"price_ori": "10.00",
"price": "0.01",
"price_one": "9.00",
"recommend_pic": "",
"cid": "103",
"buyer_num": "1"
},
"goods": {
"goods_id": "61",
"common_id": "56",
"shop_id": "2",
"shop_name": "爱咋咋地",
"goods_name": "俄罗斯方块",
"goods_promotion_tips": "",
"cat_id": "103",
"brand_id": "0",
"goods_spec": {
"i_5": {
"5": "纯黑"
}
},
"goods_price": "10.00",
"goods_market_price": "100.00",
"goods_stock": "869",
"goods_alarm": "0",
"goods_code": "",
"goods_barcode": "",
"goods_is_recommend": "1",
"goods_click": "561",
"goods_salenum": "61",
"goods_collect": "4",
"goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg",
"color_id": "5",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "14",
"goods_max_sale": "0",
"goods_is_shelves": "1",
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "61"
}
}
],
"cat_id": 0
}
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~
### 拼团-一起拼列表
~~~[api]
post:/index.php?ctl=PinTuan&met=markList&typ=json
*string:u#u
*string:k#k
*string:detail_id#detail_id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": [
{
"id": "26",
"user_id": "10003",
"detail_id": "38",
"created_time": "2018-04-11 16:09:34",
"num": "1",
"status": "0",
"buyer_count": "1",
"user_name": "18354789632",
"user_logo": "https://sassucenter.local.yuanfeng021.com/ucenter/data/upload/images/1523414127.png",
"person_num": "2",
"end_time": "2018-04-11 18:00:00",
"lack": 1,
"shop_user_id": "10003",
"hour": 0,
"min": 56,
"second": 23
}
]
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~
### 拼团规则
~~~[api]
post:/index.php?ctl=PinTuan&met=rule&typ=json
*string:u#u
*string:k#k
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"rule": "<p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none;\"><span style=\"text-decoration: none; font-size: 14px;\">1</span><span style=\"color: rgb(255, 192, 0); text-decoration: none; font-size: 14px;\"></span><span style=\"text-decoration: none; font-size: 14px; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);\">、拼团时间</span></span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"font-size: 14px; text-decoration: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);\">拼团商品活动时间为商家设定,若逾期则视为该商品拼团活动结束。</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"font-size: 14px; text-decoration: none; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0);\">2、拼团限制</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">同一款商品,一个用户账号只能拼团买一件。</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">3、拼团失败</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">拼团失败后,系统会为您取消订单且退款</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"font-size: 14px;\">a.在拼团时间内,团未达到要求人数,则拼团失败;</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">b.在拼团时间内,商品售罄前团未到达到要求人数,则拼团失败</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">c.高峰时间,同时支付人数过多,团人数受限,系统会以支</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">付信息先后为参考取团要求人数,超出人员,可选择自己</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">开团,如果用户在2小时内未选择自己开团,则拼团失败。</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">4、主动退款</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">若用户参与拼团商品且支付成功,当该商品到达结束时间后</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">尚未成团系统将会主动为您退还,参团所用金额。</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">5、其他说明</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"text-decoration: none; font-size: 14px;\">a.拼团商品享受包邮福利;</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"font-size: 14px; text-decoration: none;\">b.拼团商品不参加任何其他平台活动;</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"font-size: 14px; text-decoration: none;\">c.最终解释权由远丰信息科技</span></p><p style=\"margin: 5px 0px; color: rgb(0, 0, 0); font-family: sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; text-align: left;\"><span style=\"font-size: 14px; text-decoration: none;\"><br/></span></p><p><br/></p>"
}
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~
### 拼团-确认订单
~~~[api]
post:/index.php?ctl=Buyer_Cart&met=confirmGoods&typ=json
*string:u#u
*string:k#k
*string:goods_id#goods_id
*string:goods_type#goods_type
*string:pt_detail_id#pt_detail_id
*string:goods_num#goods_num
*string:address_id#address_id
*string:mark_id#mark_id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"base": {
"goods_id": "61",
"common_id": "56",
"shop_id": "2",
"shop_name": "爱咋咋地",
"goods_name": "俄罗斯方块",
"goods_promotion_tips": "",
"cat_id": "103",
"brand_id": "0",
"goods_spec": {
"i_5": {
"5": "纯黑"
}
},
"goods_price": "0.01",
"goods_market_price": "100.00",
"goods_stock": "867",
"goods_alarm": "0",
"goods_code": "",
"goods_barcode": "",
"goods_is_recommend": "1",
"goods_click": "565",
"goods_salenum": "63",
"goods_collect": "4",
"goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg",
"color_id": "5",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "14",
"goods_max_sale": "0",
"goods_is_shelves": "1",
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "61",
"spec": [
"颜色:纯黑"
],
"spec_str": "颜色:纯黑 ",
"goods_num": 1,
"sumprice": "0.01",
"rate_price": 0,
"commission": "0.00"
},
"common": {
"common_id": "56",
"common_name": "俄罗斯方块",
"common_promotion_tips": "",
"cat_id": "103",
"cat_name": "袜子",
"shop_id": "2",
"shop_name": "爱咋咋地",
"shop_cat_id": ",,",
"shop_goods_cat_id": 0,
"goods_id": [
{
"goods_id": "61",
"color_id": 5
}
],
"shop_self_support": "0",
"shop_status": "3",
"common_property": {
"property_2": {
"0": "尺码",
"1": "2",
"2": "select",
"3": "2"
}
},
"common_spec_name": {
"1": "颜色"
},
"common_spec_value": {
"1": {
"5": "纯黑"
}
},
"brand_id": "0",
"brand_name": "",
"type_id": "2",
"common_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg",
"common_packing_list": "",
"common_service": "服务说明书,又名服务指南。是服务行业、社会服务机构向用户介绍自己所提供服务的性质、对象、收费情况及申请或使用这种服务的办法、条件等而使用的说明书。\r\n",
"common_state": "1",
"common_state_remark": "",
"common_verify": "1",
"common_verify_remark": "",
"common_add_time": "2018-04-09 15:23:40",
"common_sell_time": "2018-04-09 15:23:40",
"common_price": "10.00",
"common_market_price": "100.00",
"common_cost_price": "1.00",
"common_stock": "871",
"common_limit": "0",
"common_alarm": "0",
"common_code": "",
"common_platform_code": "0",
"common_cubage": "3.00",
"common_collect": "3",
"common_evaluate": "19",
"common_salenum": "89",
"common_invoices": "1",
"common_is_return": "0",
"common_formatid_top": "0",
"common_formatid_bottom": "0",
"common_is_recommend": "1",
"common_is_virtual": "0",
"common_virtual_date": "0000-00-00",
"common_virtual_refund": "0",
"transport_type_id": "0",
"common_location": null,
"common_is_tuan": "0",
"common_is_xian": "0",
"common_is_jia": "0",
"common_shop_contract_1": "0",
"common_shop_contract_2": "0",
"common_shop_contract_3": "1",
"common_shop_contract_4": "1",
"common_shop_contract_5": "0",
"common_shop_contract_6": "0",
"cps_rate": "0",
"second_cps_rate": "0",
"third_cps_rate": "0",
"common_cps_rate": "0.00",
"common_second_cps_rate": "0.00",
"common_third_cps_rate": "0.00",
"common_is_directseller": "0",
"product_lock_flag": "0",
"product_agent_id": "0",
"district_id": "38",
"supply_shop_id": "0",
"product_is_allow_update": "1",
"product_is_allow_price": "1",
"product_is_behalf_delivery": "1",
"common_parent_id": "0",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"product_distributor_flag": "0",
"common_distributor_description": null,
"common_distributor_flag": "0",
"common_cps_commission": "0.00",
"common_goods_from": "1",
"transport_area_id": "4",
"id": "56",
"buy_able": 0
},
"promotion": {
"id": "38",
"shop_id": "2",
"user_id": "10003",
"name": "周一拼团",
"person_num": "2",
"start_time": "2018-04-09 16:00:00",
"end_time": "2018-04-11 18:00:00",
"created_time": "2018-04-09 15:32:21",
"status": "1",
"is_recommend": "0",
"detail": {
"id": "38",
"pintuan_id": "38",
"goods_id": "61",
"price_ori": "10.00",
"price": "0.01",
"price_one": "9.00",
"recommend_pic": "",
"cid": "103"
},
"promotion_type": "pintuan"
},
"address": [
{
"user_address_id": "41",
"user_id": "10029",
"user_address_contact": "55555555555",
"user_address_province_id": "6",
"user_address_city_id": "109",
"user_address_area_id": "1543",
"user_address_area": "辽宁 鞍山市 台安县",
"user_address_address": "23123",
"user_address_phone": "13345667221",
"user_address_company": "",
"user_address_default": "1",
"user_address_time": "2018-04-09 10:45:24",
"id": "41"
}
],
"transport": {
"cost": 0,
"con": ""
},
"shop": {
"shop_id": "2",
"user_id": "10003",
"user_name": "zade",
"shop_name": "爱咋咋地",
"shop_grade_id": "1",
"shop_class_id": "1",
"shop_all_class": "0",
"shop_self_support": "false",
"shop_business": "1",
"shop_create_time": "2018-02-26 16:15:14",
"shop_end_time": "2028-02-26 16:15:14",
"shop_latitude": "",
"shop_longitude": "",
"shop_settlement_cycle": "30",
"shop_settlement_last_time": "2018-03-28 23:59:59",
"shop_points": "0",
"shop_logo": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180402/1522651794986295.jpg!200x60.jpg",
"shop_banner": "",
"shop_status": "3",
"shop_close_reason": "",
"shop_praise_rate": "0.00",
"shop_desccredit": "0.00",
"shop_servicecredit": "0.00",
"shop_deliverycredit": "0.00",
"shop_collect": "1",
"shop_template": "default",
"shop_workingtime": "09:00~18:00",
"shop_slide": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180402/1522652457764210.jpg,https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180402/1522652466531258.jpg,https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180403/1522746934572986.jpg,,",
"shop_slideurl": "https://,https://,https://,https://,https://",
"shop_domain": "SaaS",
"shop_region": "",
"shop_address": "",
"shop_qq": "",
"shop_ww": "",
"shop_tel": "",
"shop_free_shipping": "99999",
"shop_account": "",
"shop_payment": "1",
"joinin_year": "10",
"is_renovation": "0",
"is_only_renovation": "0",
"is_index_left": "0",
"shop_print_desc": "66666666",
"shop_stamp": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180331/1522489868615678.png!120x120.png",
"shop_parent_id": "0",
"shop_type": "1",
"district_id": "38",
"shop_verify_reason": "qqq",
"shop_common_service": "服务说明书,又名服务指南。是服务行业、社会服务机构向用户介绍自己所提供服务的性质、对象、收费情况及申请或使用这种服务的办法、条件等而使用的说明书。\n",
"shop_contract_return": "1",
"shop_contract_breakage": "0",
"shop_contract_quality": "1",
"shop_contract_extreme": "1",
"id": "2",
"distributor_rate": 0,
"commission": "0.00",
"sprice": "0.01"
},
"token": "6d90a856ab9101bedbdb5767466cabde"
}
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~
### 拼团-提交订单
~~~[api]
post:/index.php?ctl=Buyer_Order&met=addGoodsOrder&typ=json
*string:u#u
*string:k#k
*string:goods_id#goods_id
*string:pt_detail_id#pt_detail_id
*string:goods_num#goods_num
*string:remark#remark
*string:pay_way_id#pay_way_id
*string:goods_type#goods_type
*string:mark_id#mark_id
*string:invoice#invoice
*string:invoice_id#invoice_id
*string:invoice_title#invoice_title
*string:invoice_content#invoice_content
*string:address_id#address_id
*string:from#from
*string:token#token
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"uorder": "U20180411051206255",
"order_id": 1
}
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~
### 拼团-一起拼详情
~~~[api]
post:/index.php?ctl=PinTuan&met=pintuanInfo&typ=json
*string:u#u
*string:k#k
*string:detail_id#detail_id
*string:mark_id#mark_id
<<<
success
{
"cmd_id": -140,
"status": 200,
"msg": "success",
"data": {
"id": "38",
"shop_id": "2",
"user_id": "10003",
"name": "周一拼团",
"person_num": "2",
"start_time": "2018-04-09 16:00:00",
"end_time": "2018-04-11 18:00:00",
"created_time": "2018-04-09 15:32:21",
"status": "1",
"is_recommend": "0",
"detail": {
"id": "38",
"pintuan_id": "38",
"goods_id": "61",
"price_ori": "10.00",
"price": "0.01",
"price_one": "9.00",
"recommend_pic": "",
"cid": "103"
},
"mark": [
{
"id": "26",
"user_id": "10003",
"detail_id": "38",
"created_time": "2018-04-11 16:09:34",
"num": "1",
"status": "0",
"buyer_count": "1",
"user_name": "18354789632",
"user_logo": "https://sassucenter.local.yuanfeng021.com/ucenter/data/upload/images/1523414127.png",
"person_num": "2",
"end_time": "2018-04-11 18:00:00",
"lack": 1,
"shop_user_id": "10003"
}
],
"goods_detail": {
"goods_id": "61",
"common_id": "56",
"shop_id": "2",
"shop_name": "爱咋咋地",
"goods_name": "俄罗斯方块",
"goods_promotion_tips": "",
"cat_id": "103",
"brand_id": "0",
"goods_spec": {
"i_5": {
"5": "纯黑"
}
},
"goods_price": "10.00",
"goods_market_price": "100.00",
"goods_stock": "866",
"goods_alarm": "0",
"goods_code": "",
"goods_barcode": "",
"goods_is_recommend": "1",
"goods_click": "565",
"goods_salenum": "63",
"goods_collect": "4",
"goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg",
"color_id": "5",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "14",
"goods_max_sale": "0",
"goods_is_shelves": "1",
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "61"
},
"buyer": [
{
"id": "44",
"detail_id": "38",
"user_id": "10029",
"created_time": "2018-04-11 17:02:42",
"mark_id": "27",
"ranking": "0",
"user_logo": "https://sassucenter.local.yuanfeng021.com/ucenter/data/upload/images/1523413657.png"
}
],
"buyer_id": [
"10029"
],
"lack": 1,
"buyer_sum": "3",
"goods": [
{
"id": "38",
"shop_id": "2",
"user_id": "10003",
"name": "周一拼团",
"person_num": "2",
"start_time": "2018-04-09 16:00:00",
"end_time": "2018-04-11 18:00:00",
"created_time": "2018-04-09 15:32:21",
"status": "1",
"is_recommend": "0",
"detail": {
"id": "38",
"pintuan_id": "38",
"goods_id": "61",
"price_ori": "10.00",
"price": "0.01",
"price_one": "9.00",
"recommend_pic": "",
"cid": "103",
"buyer_num": "3"
},
"goods": {
"goods_id": "61",
"common_id": "56",
"shop_id": "2",
"shop_name": "爱咋咋地",
"goods_name": "俄罗斯方块",
"goods_promotion_tips": "",
"cat_id": "103",
"brand_id": "0",
"goods_spec": {
"i_5": {
"5": "纯黑"
}
},
"goods_price": "10.00",
"goods_market_price": "100.00",
"goods_stock": "866",
"goods_alarm": "0",
"goods_code": "",
"goods_barcode": "",
"goods_is_recommend": "1",
"goods_click": "565",
"goods_salenum": "63",
"goods_collect": "4",
"goods_image": "https://sass.local.yuanfeng021.com/image.php/shop/data/upload/media/387d536e023f4e709a49c33d94dd622f/10003/2/image/20180320/1521509098372719.jpg",
"color_id": "5",
"goods_evaluation_good_star": "5",
"goods_evaluation_count": "14",
"goods_max_sale": "0",
"goods_is_shelves": "1",
"goods_recommended_price": "0.00",
"goods_recommended_min_price": "0.00",
"goods_recommended_max_price": "0.00",
"goods_parent_id": "0",
"id": "61"
}
}
],
"timestamp": 2764
}
}
<<<
error
{
"cmd_id": -140,
"status": 250,
"msg": "failure",
"data": {}
}
~~~