Commit b8a251259bb8bf60f4d7bcbfdd83d030c6647a1f

Authored by 李康
1 parent df0eaeed21
Exists in master

增加登录校验

Showing 1 changed file with 20 additions and 5 deletions Side-by-side Diff

doc/server_document.md
... ... @@ -8,14 +8,29 @@
8 8 product: 购买商品名字(50字符)
9 9 currency: 币种 (目前仅有CNY)
10 10 amount: 充值金额(分)
11   - channel:支付渠道(对应详情见3)
12   - sig: 签名(算法详见2)
  11 + channel:支付渠道(对应详情见4)
  12 + sig: 签名(算法详见3)
13 13  
14 14 第三方server端返回值:
15 15 如果第三方验证成功,则返回字符串"success"即可,否则会通知10次后停止.如重复通知,注意校验平台订单号,如重复忽略.
  16 +
  17 +
  18 +2. 登录验证
  19 +-----------------------------------
  20 + url: http://inner-sdk.letsgame.mobi/v1/sdk/login_verify.do
  21 + 参数:
  22 + userId:uid
  23 + appKey:第三方渠道的key
  24 + sessionKey:验证key
  25 +
  26 + 返回值:
  27 + {
  28 + "code":100000(100000:成功,100012:用户不存在,-1:失败),
  29 + "msg":"xxxxxx",
  30 + "userId":1234
  31 + }
16 32  
17   -
18   -2.签名算法
  33 +3.签名算法
19 34 --------------------------------
20 35  
21 36 注意:签名参数不能写成固定数量,一定要获取全部参数并且除sig参数外,然后按照字母升序排列。
... ... @@ -54,7 +69,7 @@
54 69  
55 70 注意:参数是按字母升序排列 akey=value&bkey=value.... + secretkey(对应渠道的应用ID)
56 71  
57   -3.channel详情(部分上线)
  72 +4.channel详情(部分上线)
58 73 --------------------------------
59 74  
60 75 100100:丫丫玩