| | |
| | | import com.qianwen.smartman.modules.sync.constant.QyWechatConstant; |
| | | |
| | | |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/sync/util/CodeUtil.class */ |
| | | |
| | | public class CodeUtil { |
| | | private static final Logger log = LoggerFactory.getLogger(CodeUtil.class); |
| | | |
| | |
| | | } |
| | | |
| | | public static String getLoginCodeCacheKey(String fileName) { |
| | | return QyWechatConstant.CODE_KEY + QyWechatConstant.QY_CODE_LOGIN_TYPE + SystemPropertyUtils.VALUE_SEPARATOR + fileName; |
| | | return QyWechatConstant.CODE_KEY + QyWechatConstant.QY_CODE_LOGIN_TYPE + ":" + fileName; |
| | | } |
| | | |
| | | public static String getBindCodeCacheKey(String fileName, Long empId) { |
| | | return QyWechatConstant.CODE_KEY + QyWechatConstant.QY_CODE_BIND_TYPE + SystemPropertyUtils.VALUE_SEPARATOR + fileName + SystemPropertyUtils.VALUE_SEPARATOR + empId; |
| | | return QyWechatConstant.CODE_KEY + QyWechatConstant.QY_CODE_BIND_TYPE + ":" + fileName + ":" + empId; |
| | | } |
| | | |
| | | public static String codeFileToBase64(File codeFile) { |