|
|
@ -110,10 +110,11 @@ public class PmnPromotionSrcServiceImpl extends ServiceImpl<PmnPromotionSrcDOMap
|
|
|
|
if (!codeFile.exists() || src.getQrCode() == null) {
|
|
|
|
if (!codeFile.exists() || src.getQrCode() == null) {
|
|
|
|
// String cpUserId = "mayifei";
|
|
|
|
// String cpUserId = "mayifei";
|
|
|
|
String cpUserId = staff.getStaffCode();
|
|
|
|
String cpUserId = staff.getStaffCode();
|
|
|
|
String url = "https://wework.qpic.cn/wwpic/789548_SW5hhAm-TgyEW0F_1590128879/0";
|
|
|
|
String url = "";
|
|
|
|
if (cpUserId != "mayifei") {
|
|
|
|
if (cpUserId != "mayifei") {
|
|
|
|
url = storeEmployeeService.createActivityQrCode(cpUserId, staff.getStoreCode(), src.getType().intValue(), src.getInstanceId(), src.getPromoterId());
|
|
|
|
url = storeEmployeeService.createActivityQrCode(cpUserId, staff.getStoreCode(), src.getType().intValue(), src.getInstanceId(), src.getPromoterId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if(url == "") url = "https://wework.qpic.cn/wwpic/789548_SW5hhAm-TgyEW0F_1590128879/0";
|
|
|
|
saveCodeFile(url, src.getCode());
|
|
|
|
saveCodeFile(url, src.getCode());
|
|
|
|
src.setQrCode(url);
|
|
|
|
src.setQrCode(url);
|
|
|
|
updateById(src);
|
|
|
|
updateById(src);
|
|
|
|