cn.binarywang.wx.miniapp.api.impl.WxMaRunServiceImpl Maven / Gradle / Ivy
package cn.binarywang.wx.miniapp.api.impl;
import cn.binarywang.wx.miniapp.api.WxMaRunService;
import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.bean.WxMaRunStepInfo;
import cn.binarywang.wx.miniapp.util.crypt.WxMaCryptUtils;
import lombok.RequiredArgsConstructor;
import java.util.List;
/**
*
* Created by Binary Wang on 2018/11/4.
*
*
* @author Binary Wang
*/
@RequiredArgsConstructor
public class WxMaRunServiceImpl implements WxMaRunService {
private final WxMaService service;
@Override
public List getRunStepInfo(String sessionKey, String encryptedData, String ivStr) {
return WxMaRunStepInfo.fromJson(WxMaCryptUtils.decrypt(sessionKey, encryptedData, ivStr));
}
}