简要描述:

  • 用户登录接口

请求域名:

  • http://xx.com

请求URL:

GET/route=goods.dispatch.index(视图)
POST/route=goods.dispatch.dispatch-data(获取数据)

传参数说明:

参数名 类型 说明

备注:

返回示例:

正确时返回:

{
	result: 1,
	msg: "ok",
	data: {
		total: 3,
		per_page: 10,
		current_page: 1,
		last_page: 1,
		next_page_url: null,
		prev_page_url: null,
		from: 1,
		to: 3,
		data: [{
				id: 3,
				uniacid: 2,
				dispatch_name: "有意义有意义有意义",
				display_order: 5,
				enabled: 1,
				is_default: 0,
				calculate_type: 1,
				areas: "全国 [默认运费]",
				first_weight: 1000,
				another_weight: 1000,
				first_weight_price: "0.00",
				another_weight_price: "0.00",
				first_piece: 1,
				another_piece: 1,
				first_piece_price: "8.00",
				another_piece_price: "3.00",
				weight_data: "N;",
				piece_data: "a:1:{i:2;a:6:{s:5:"
				areas ";s:0:"
				";s:8:"
				area_ids ";s:189:"
				710100;710200;710300;710400;710500;710600;710700;710800;710900;711100;711200;711300;711400;711500;711700;711900;712100;712400;712500;712600;712700;712800;810100;810200;810300;820100;820200;
				";s:11:"
				first_piece ";s:1:"
				0 ";s:17:"
				first_piece_price ";s:1:"
				0 ";s:13:"
				another_piece ";s:1:"
				0 ";s:19:"
				another_piece_price ";s:1:"
				0 ";}}",
				is_plugin: 0,
				created_at: "2017-10-16 15:56:09",
				updated_at: "2020-07-21 16:40:38",
				deleted_at: null,
				plugin_id: 0
			},
			{
				id: 1,
				uniacid: 2,
				dispatch_name: "测试",
				display_order: 3,
				enabled: 1,
				is_default: 0,
				calculate_type: 0,
				areas: "全国 [默认运费]",
				first_weight: 1000,
				another_weight: 1000,
				first_weight_price: "8.00",
				another_weight_price: "2.00",
				first_piece: 1,
				another_piece: 1,
				first_piece_price: "10.00",
				another_piece_price: "10.00",
				weight_data: "a:3:{i:2;a:6:{s:5:"
				areas ";s:10:"
				北京市;
				";s:8:"
				area_ids ";s:7:"
				110100;
				";s:12:"
				first_weight ";s:4:"
				1000 ";s:18:"
				first_weight_price ";s:5:"
				10.00 ";s:14:"
				another_weight ";s:4:"
				1000 ";s:20:"
				another_weight_price ";s:4:"
				3.00 ";}i:3;a:6:{s:5:"
				areas ";s:159:"
				呼和浩特市;包头市;乌海市;赤峰市;通辽市;鄂尔多斯市;呼伦贝尔市;巴彦淖尔市;乌兰察布市;兴安盟;锡林郭勒盟;阿拉善盟;
				";s:8:"
				area_ids ";s:84:"
				150100;150200;150300;150400;150500;150600;150700;150800;150900;152200;152500;152900;
				";s:12:"
				first_weight ";s:4:"
				1000 ";s:18:"
				first_weight_price ";s:5:"
				20.00 ";s:14:"
				another_weight ";s:4:"
				1000 ";s:20:"
				another_weight_price ";s:3:"
				400 ";}i:4;a:6:{s:5:"
				areas ";s:10:"
				天津市;
				";s:8:"
				area_ids ";s:7:"
				120100;
				";s:12:"
				first_weight ";s:4:"
				1000 ";s:18:"
				first_weight_price ";s:5:"
				30.00 ";s:14:"
				another_weight ";s:4:"
				1000 ";s:20:"
				another_weight_price ";s:4:"
				5.00 ";}}",
				piece_data: "a:2:{i:5;a:6:{s:5:"
				areas ";s:0:"
				";s:8:"
				area_ids ";s:84:"
				150100;150200;150300;150400;150500;150600;150700;150800;150900;152200;152500;152900;
				";s:12:"
				first_weight ";s:1:"
				1 ";s:18:"
				first_weight_price ";s:2:"
				20 ";s:14:"
				another_weight ";s:1:"
				1 ";s:20:"
				another_weight_price ";s:2:"
				20 ";}i:6;a:6:{s:5:"
				areas ";s:0:"
				";s:8:"
				area_ids ";s:91:"
				120100;150100;150200;150300;150400;150500;150600;150700;150800;150900;152200;152500;152900;
				";s:12:"
				first_weight ";s:1:"
				1 ";s:18:"
				first_weight_price ";s:2:"
				30 ";s:14:"
				another_weight ";s:1:"
				1 ";s:20:"
				another_weight_price ";s:2:"
				30 ";}}",
				is_plugin: 0,
				created_at: "2017-08-15 11:36:23",
				updated_at: "2020-07-21 16:40:11",
				deleted_at: null,
				plugin_id: 0
			},
			{
				id: 2,
				uniacid: 2,
				dispatch_name: "按重量计费",
				display_order: 1,
				enabled: 1,
				is_default: 0,
				calculate_type: 0,
				areas: "全国 [默认运费]",
				first_weight: 500,
				another_weight: 300,
				first_weight_price: "10.00",
				another_weight_price: "5.00",
				first_piece: 1,
				another_piece: 1,
				first_piece_price: "0.00",
				another_piece_price: "0.00",
				weight_data: "a:1:{i:2;a:6:{s:5:"
				areas ";s:955:"
				呼和浩特市;包头市;乌海市;赤峰市;通辽市;鄂尔多斯市;呼伦贝尔市;巴彦淖尔市;乌兰察布市;兴安盟;锡林郭勒盟;阿拉善盟;拉萨市;昌都地区;山南地区;日喀则地区;那曲地区;阿里地区;林芝地区;兰州市;嘉峪关市;金昌市;白银市;天水市;武威市;张掖市;平凉市;酒泉市;庆阳市;定西市;陇南市;临夏回族自治州;甘南藏族自治州;西宁市;海东市;海北藏族自治州;黄南藏族自治州;海南藏族自治州;果洛藏族自治州;玉树藏族自治州;海西蒙古族藏族自治州;银川市;石嘴山市;吴忠市;固原市;中卫市;乌鲁木齐市;克拉玛依市;吐鲁番地区;哈密地区;昌吉回族自治州;博尔塔拉蒙古自治州;巴音郭楞蒙古自治州;阿克苏地区;克孜勒苏柯尔克孜自治州;喀什地区;和田地区;伊犁哈萨克自治州;塔城地区;阿勒泰地区;石河子市;阿拉尔市;图木舒克市;五家渠市;
				";s:8:"
				area_ids ";s:448:"
				150100;150200;150300;150400;150500;150600;150700;150800;150900;152200;152500;152900;540100;542100;542200;542300;542400;542500;542600;620100;620200;620300;620400;620500;620600;620700;620800;620900;621000;621100;621200;622900;623000;630100;632100;632200;632300;632500;632600;632700;632800;640100;640200;640300;640400;640500;650100;650200;652100;652200;652300;652700;652800;652900;653000;653100;653200;654000;654200;654300;659001;659002;659003;659004;
				";s:12:"
				first_weight ";s:3:"
				500 ";s:18:"
				first_weight_price ";s:2:"
				12 ";s:14:"
				another_weight ";s:3:"
				300 ";s:20:"
				another_weight_price ";s:1:"
				5 ";}}",
				piece_data: "N;",
				is_plugin: 0,
				created_at: "2017-10-16 15:55:31",
				updated_at: "2020-07-21 16:40:11",
				deleted_at: null,
				plugin_id: 0
			}
		]
	}
}

错误时返回:

 

data 返回参数说明:

参数名 类型 说明
dispatch_name str 配送方式名称
display_order int 显示顺序
enabled int 是否启用:
desc str 品牌desc : 1启用 0 不启用
is_default int 是否默认:1默认 0非默认
calculate_type str 计费方式
areas str 地区
first_weight int 首重
another_weight int 续重
first_weight_price int 首重价格
another_weight_price int 续重价格
first_piece int 首件
another_piece int 另一件
first_piece_price int 首件价格
another_piece_price int 续件价格
weight_data str 重量数据
piece_data str 工件数据
is_plugin int 是否插件
plugin_id int 插件id

备注:

  • 更多返回错误代码请看首页的错误代码描述