Commit a0b30aaf authored by 王敬磊's avatar 王敬磊

添加token参数校验方法及示例

parent 9f6fe8c4
......@@ -46,7 +46,7 @@ public class QmaiTokenUtil {
* @return 正常情况返回token字符串,token获取失败时返回null
*/
public static String getToken(String grandCode, String openId, String openKey, Long nonce, Long timestamp) {
if (checkParam(grandCode, openId, openKey, nonce, timestamp)) {
if (!checkParam(grandCode, openId, openKey, nonce, timestamp)) {
return null;
}
HashMap<String, Object> map = new HashMap<>(4);
......
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