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
commit fadafb6302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -644,7 +644,7 @@ public class CardApi extends MpApi {
String card_code_get = getRequestUri("card_code_get_uri");
JSONObject param = new JSONObject();
param.put("code", code);
if(!StringUtils.isEmpty(cardId)){
if(cardId!=null && cardId.length()>0){
param.put("card_id", cardId);
}