package com.dcsoft.system.uniubi.service.impl;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.dcsoft.common.core.constant.CacheConstants;
import com.dcsoft.common.core.utils.StringUtils;
import com.dcsoft.system.domain.SysEmpowerRecord;
import com.dcsoft.system.domain.SysEquipment;
import com.dcsoft.system.domain.SysPeople;
import com.dcsoft.system.domain.SysRule;
import com.dcsoft.system.service.ISysEmpowerRecordService;
import com.dcsoft.system.service.ISysEquipmentService;
import com.dcsoft.system.service.ISysRuleService;
import com.dcsoft.system.uniubi.service.ISysApiService;
import com.dcsoft.system.utils.HttpUtil;
import com.dcsoft.system.utils.ImageToBase64Utils;
import com.dcsoft.system.visitor.domain.VisVisitorExamine;
import com.dcsoft.system.visitor.domain.Visitor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.dcsoft.common.redis.service.RedisService;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.util.*;

/**
 * 用户管理 服务层处理
 *
 * @author xueyi
 */
@Service
public class SysApiServiceImpl implements ISysApiService {




    private static String fillMD5(String md5) {
        //如果不够32位则回调自身补零，最后返回32位长度的签名
        return md5.length() == 32 ? md5 : fillMD5("0" + md5);
    }

}
