ParamsSignUtils class

  •   签名算法 (无需参数   此步骤作废)
    
  •   第一步:对参数按照key=value的格式,并按照参数名ASCII字典序排序:    b=yy&a=xx&c=zz  排序后为  a=xx&b=yy&c=zz
    
  •   第二步:拼接Url密钥:a=xx&b=yy&c=zz&sign=key     (key由开发者提供)
    
  •   第三步:Md5ToLower(Url密钥,32) 得到签名秘钥signKey
    
  •   第四步:生产完整请求参数  a=xx&b=yy&c=zz&sign=signKey
    
  •   {
    
  •        "money":30,
    
  •        "openId":"oJF440nFowxxoEEPLil_h2LyE6Eg",
    
  •        "orderId":"订单流水号"
    
  •        "sign":"f9f2finfi2****0jg500g3rgeri",
    
  •   }
    

Constructors

ParamsSignUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uriParamsMaps SplayTreeMap
final

Methods

createUrlSign(String urlParams, String signKey) String
创建 sign签名 是否正确
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
urlAddSign(String urlParams, String signKey) String
url添加sign签名
validateSign(String urlParams, String signKey) bool
验证url sign签名 是否正确

Operators

operator ==(Object other) bool
The equality operator.
inherited