Merge pull request #179 from kit-lee/hotfix/bugfix

fix not import StringUtils
This commit is contained in:
jinyu
2019-09-16 17:36:07 +08:00
committed by GitHub
@@ -644,7 +644,7 @@ public class CardApi extends MpApi {
String card_code_get = getRequestUri("card_code_get_uri"); String card_code_get = getRequestUri("card_code_get_uri");
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
param.put("code", code); param.put("code", code);
if(!StringUtils.isEmpty(cardId)){ if(cardId!=null && cardId.length()>0){
param.put("card_id", cardId); param.put("card_id", cardId);
} }