Commit 6e9a0f89 by 宋毅

tj

parent b7eb132f
......@@ -25,6 +25,7 @@ class APIBase {
"GetQualificationCertificateListByUserAndType": "getQualificationCertificateListByUserAndType",
"GetQualificationCertificateDetail": "getQualificationCertificateDetail",
"RefusalSolution": "refusalSolution",
"SendVerificationCode": "sendVerificationCode",
};
}
......
......@@ -35,8 +35,7 @@ class CommonMsgSend extends APIBase {
opResult = system.getResultSuccess("测试接口");
break;
case "sendVerificationCode"://发送验证码
opResult = await this.utilsMsgSendSve.sendVerificationCode(actionBody.phoneNumber);
opResult = await this.utilsMsgSendSve.sendVerificationCode(actionBody.PhoneNumber);
break;
default:
opResult = system.getResult(null, "actionType参数错误");
......
......@@ -32,12 +32,12 @@ class Need extends APIBase {
opResult = system.getResult(null, "contactsMoblie参数错误");
return opResult;
}
if (!pobj.actionBody.verificationCode) {
if (!pobj.actionBody.VerificationCode) {
opResult = system.getResult(null, "verificationCode参数错误");
return opResult;
}
var v = await self.utilsMsgSendSve.getVerificationCode(pobj.actionBody.contactsMoblie);
if (v != pobj.actionBody.verificationCode) {
if (v != pobj.actionBody.VerificationCode) {
opResult = system.getResult(null, "验证码错误");
return opResult;
}
......
......@@ -37,9 +37,9 @@ class Order extends APIBase {
opResult = system.getResult(null, "contactsMoblie参数错误");
return opResult;
}
if (pobj.actionBody.verificationCode) {
if (pobj.actionBody.VerificationCode) {
var v = await self.utilsMsgSendSve.getVerificationCode(pobj.actionBody.contactsMoblie);
if (v != pobj.actionBody.verificationCode) {
if (v != pobj.actionBody.VerificationCode) {
opResult = system.getResult(null, "验证码错误");
return opResult;
}
......
......@@ -5,15 +5,7 @@
## 2. 接收服务商数据相关接口
  1 [接收接口](doc/api/pushReceive/receive.md)
## 3. 用户中心相关接口
  1 [用户中心接口](doc/api/platform/user.md)
## 4. 产品中心相关接口
  1 [产品中心接口](doc/api/platform/product.md)
## 5. 订单中心相关接口
  1 [订单中心接口](doc/api/platform/order.md)
## 6. 用户控制台
## 3. 用户控制台
  1 [用户订单接口](doc/api/customer/order.md)
## 6. 消息中心
## 4. 消息中心
  1 [消息中心接口](doc/api/platform/commonMsg.md)
\ No newline at end of file
......@@ -8,20 +8,24 @@
[/api/action/commonMsgSend/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 渠道执行的类型 actionType:sendVerificationCode
#### 渠道执行的类型 Action:SendVerificationCode
``` javascript
{
"phoneNumber":"15010929366" // Y 手机号
}
"Action": "SendVerificationCode",
"ActionBody": {
"PhoneNumber": "15010929366" // Y 手机号
}
}
```
#### 返回结果
```javascript
{
"status": 0, // 0为成功,否则失败
"msg": "success",
"data": null,
"requestId": "4f3ea2afee3542f88d6b938394af84d8"
}
"Response": {
"Status": 1,//1为成功,否则失败
"InstanceSet": null,
"RequestId": "7364f560-b29c-11ea-97f7-efd638e57201"
}
}
```
\ No newline at end of file
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