|
|
|
@ -285,6 +285,30 @@ public class StoreEmployeeService {
|
|
|
|
|
return url;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取波司登二维码
|
|
|
|
|
*
|
|
|
|
|
* @param cpUserId
|
|
|
|
|
* @param type
|
|
|
|
|
* @param state
|
|
|
|
|
* @param storeNo
|
|
|
|
|
* @return
|
|
|
|
|
* @throws Exception
|
|
|
|
|
*/
|
|
|
|
|
public BsdShareCodeResponse getQrCodeFromBSDNew(String cpUserId, String type, String state, String storeNo) throws Exception {
|
|
|
|
|
String url = "";
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
|
|
|
params.put("userId", cpUserId);
|
|
|
|
|
params.put("type", type);
|
|
|
|
|
params.put("state", state);
|
|
|
|
|
params.put("storeNo", storeNo);
|
|
|
|
|
String message = HttpClientUtil.httpPost(qrCodeBsdUrl + MD5FileUtil.getMD5String("BOSIDENG" + sdf.format(new Date())), JSONObject.toJSONString(params)).getMessage();
|
|
|
|
|
JSONObject qrCodeJson = JSONObject.parseObject(message);
|
|
|
|
|
BsdShareCodeResponse bsdResponse = qrCodeJson.toJavaObject(BsdShareCodeResponse.class);
|
|
|
|
|
return bsdResponse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 批量下载店铺二维码
|
|
|
|
|