文档
测试

授权登录

POST
http://h5.fp01.net/dzswj/TranData

请求参数

参数名
类型
描述
必填
taxno
String
税号
必填
oldpwd
String
密码
必填
password
String
加密密码 (具体请看示例)
必填
index
String
登录身份 0: 法定代表人 1: 财务负责人 2: 办税员
必填
phone
String
手机号
必填
PROD_NAME
String
产品名称 默认值 tuteng
必填
areacode
String
地区编码 默认值 370000
必填
ikind
String
默认值 1
必填
channelId
String
渠道id 默认值 tuteng
必填
ordernum
String
订单号
必填
username
String
空值
必填
userId
String
加密税号 (具体请看示例)
必填
czydm
String
手机号
必填
verifyCode
String
图片验证码坐标 x,y "49,40"
必填
zrruserId
String
加密手机号 (具体请看示例)
必填
zrrpassword
String
加密手机号 (具体请看示例)
必填

响应参数

参数名
类型
描述
必填
retcode
Number
状态码 2 为成功状态 0 为失败状态
必填
retmsg
String
具体消息以返回结果为准
必填

说明 / 示例

**安装** npm install crypto-js **引入** import CryptoJS from "crypto-js"; **加密方法** Encrypt: function(word) { var key = CryptoJS.enc.Utf8.parse(this.code); // this.code = rsakey接口返回值 var srcs = CryptoJS.enc.Utf8.parse(word); var encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7, }); return encrypted.toString(); } **使用** userId = this.Encrypt(this.taxno) password = this.Encrypt(this.oldpwd) zrruserId = this.Encrypt(this.phone) zrrpassword= this.Encrypt(this.phone)