Commit 1d130047 by 王昆

gsb

parent 1cb0282f
......@@ -119,6 +119,48 @@ class DeliverCtl extends CtlBase {
}
}
async provinceList(pobj, pobj2, req) {
try {
return system.getResultSuccess([
{"id": 1100, "name":"北京市"},
{"id": 1200, "name":"天津市"},
{"id": 1300, "name":"河北省"},
{"id": 1400, "name":"山西省"},
{"id": 1500, "name":"内蒙古自治区"},
{"id": 2100, "name":"辽宁省"},
{"id": 2200, "name":"吉林省"},
{"id": 2300, "name":"黑龙江省"},
{"id": 3100, "name":"上海市"},
{"id": 3200, "name":"江苏省"},
{"id": 3300, "name":"浙江省"},
{"id": 3400, "name":"安徽省"},
{"id": 3500, "name":"福建省"},
{"id": 3600, "name":"江西省"},
{"id": 3700, "name":"山东省"},
{"id": 4100, "name":"河南省"},
{"id": 4200, "name":"湖北省"},
{"id": 4300, "name":"湖南省"},
{"id": 4400, "name":"广东省"},
{"id": 4500, "name":"广西壮族自治区"},
{"id": 5000, "name":"重庆市"},
{"id": 5100, "name":"四川省"},
{"id": 5200, "name":"贵州省"},
{"id": 5300, "name":"云南省"},
{"id": 5400, "name":"西藏自治区"},
{"id": 6100, "name":"陕西省"},
{"id": 6200, "name":"甘肃省"},
{"id": 6300, "name":"青海省"},
{"id": 6400, "name":"宁夏回族自治区"},
{"id": 6500, "name":"新疆维吾尔自治区"},
{"id": 7100, "name":"台湾省"},
{"id": 8100, "name":"香港特别行政区"},
{"id": 8200, "name":"澳门特别行政区"},
]);
} catch (e) {
console.log(e);
return system.getResultFail(500, "接口错误");
}
}
}
module.exports = DeliverCtl;
\ No newline at end of file
......@@ -42,7 +42,7 @@ class BusinessmenService extends ServiceBase {
deliver = deliver.data;
var deliver = await this.callms("common", "deliverInfo", {id: params.deliver_id});
deliver = deliver.data;
let data = {
customerName: businessmen.name,
initPeriod: new Date(moment().format("YYYY-MM") + "-01 00:00:00").getTime(),
......
......@@ -174,7 +174,7 @@ class System {
var domain = "http://39.107.234.14";
return {
// 公共服务
common: domain2 + ":3102" + path,
common: domain + ":3102" + path,
// common: "http://127.0.0.1:3102" + path,
// 商户服务
......@@ -182,7 +182,7 @@ class System {
// merchant: "http://127.0.0.1:3101" + path,
// 订单服务
order: domain2 + ":3103" + path,
order: domain + ":3103" + path,
// order: "http://127.0.0.1:3103" + path,
// 发票服务
......
<a name="menu">目录</a>
1. [](#provinceList)
1. [全部交付商](#all)
1. [交付商列表](#list)
1. [交付商查询](#info)
......@@ -8,6 +9,35 @@
1. [修改密码](#resetPassword)
## **<a name="provinceList"> 省</a>**
[返回到目录](#menu)
##### URL
[/web/common/deliverCtl/provinceList]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
``` javascript
{}
```
#### 返回结果
```javascript
{
"status": 0,
"msg": "success",
"data": [
{
"id": "1", // 省id
"name": "北京", // 交付商
},
],
"requestid": "5026518c1b354582932e5222bab4a785"
}
```
## **<a name="all"> 全部交付商</a>**
[返回到目录](#menu)
##### URL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment