POST api/WebInterface/Agent/ChangePayPassword

使用手机验证码修改支付密码。

Request Information

URI Parameters

None.

Body Parameters

NewPasswordWithVerifyCodeParm
NameDescriptionTypeAdditional information
newpassword

新密码,非明文。 按以下规则进行加密: 重置登陆密码时: KEY=会话密钥(STRING) byte[] KEYForTripDes = HAMCSHA256(UTF8.GetBytes(KEY)) byte[] KEY2 = KEYFroTripDes的前24字节 值= ToBase64String(TripleDes(UTF8.GetBytes(UPPER_MD5(新密码)),KEY2) 设置支付密码时: KEY=会话密钥(STRING) + UPPER_MD5(登陆密码) byte[] KEYForTripDes = HAMCSHA256(UTF8.GetBytes(KEY)) byte[] KEY2 = KEYFroTripDes的前24字节 值= ToBase64String(TripleDes(UTF8.GetBytes(UPPER_MD5(新密码)),KEY2) 对UPPER_MD5()计算过程的描述: byte[] valueBuffer = Utf8.GetBytes(待运算的字符串) byte[] md5buffer = Md5(valueBuffer); string value = FormatString(md5Buffer,"x2")/*这个的意思是转换成bcd字符串,一个字节变成两个字符0xae= "ae",0x0a="0a"*/ string returnvalue = upper(value);全部转换成大写,仍然是每两个字符表示一个字节。 请不要指责这个脱库子放屁的处理,因为我们要兼容老版本,新版本只能如此。

string

Required

Max length: 64

verifycode

验证码

string

Required

Max length: 6

mobile

手机号尾数或全号,此手机号必须是开立电子门票系统账户时,留存于供应商处的手机1或手机2的尾数。

string

Required

Max length: 11

username

用户登陆名

string

Required

Max length: 30

Request Formats

application/json, text/json

Sample:
{
  "newpassword": "sample string 1",
  "verifycode": "sample string 2",
  "mobile": "sample string 3",
  "username": "sample string 4"
}

application/xml, text/xml

Sample:
<NewPasswordWithVerifyCodeParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface">
  <mobile>sample string 3</mobile>
  <newpassword>sample string 1</newpassword>
  <username>sample string 4</username>
  <verifycode>sample string 2</verifycode>
</NewPasswordWithVerifyCodeParm>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

使用手机验证码修改支付密码。

CommonOperationResult
NameDescriptionTypeAdditional information
errcode

错误代码,通常0表示成功,其他值表示错误。

integer

None.

errmsg

错误描述,当errcode不为零时,此值可以用于呈现给用户。

string

None.

tag

操作同时,服务器端需要返回的其他值。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer">
  <errcode>1</errcode>
  <errmsg>sample string 2</errmsg>
  <tag>sample string 3</tag>
</CommonOperationResult>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.