小程序保存人脸图片 -- upby修改
This commit is contained in:
parent
22cfb63c8c
commit
43ebd8c5ee
|
|
@ -32,7 +32,7 @@ public class CustPhotoController extends BaseController {
|
||||||
@PostMapping({"/custInfo/uploadPhotoGenCodeForApp"})
|
@PostMapping({"/custInfo/uploadPhotoGenCodeForApp"})
|
||||||
@RequiresGuest
|
@RequiresGuest
|
||||||
public AjaxResult uploadPhotoGenCodeForApp(@RequestBody @Valid UploadPhotoGenCodeDTO dto) {
|
public AjaxResult uploadPhotoGenCodeForApp(@RequestBody @Valid UploadPhotoGenCodeDTO dto) {
|
||||||
try { //Openid SourceType CustId ExpirDay PhotoUrl
|
try {
|
||||||
if (ObjectUtil.isNull(dto.getCustId())) {
|
if (ObjectUtil.isNull(dto.getCustId())) {
|
||||||
throw new ServiceException("customer.casual.login.bindInExists");
|
throw new ServiceException("customer.casual.login.bindInExists");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.bonus.common.core.exception.ServiceException;
|
import com.bonus.common.core.exception.ServiceException;
|
||||||
import com.bonus.common.core.web.domain.AjaxResult;
|
import com.bonus.common.core.web.domain.AjaxResult;
|
||||||
|
import com.bonus.common.security.utils.SecurityUtils;
|
||||||
import com.bonus.core.account.v3.constants.AccStatusEnum;
|
import com.bonus.core.account.v3.constants.AccStatusEnum;
|
||||||
import com.bonus.core.allocation.api.GlobalMetadataApi;
|
import com.bonus.core.allocation.api.GlobalMetadataApi;
|
||||||
import com.bonus.core.allocation.mobile.dto.MobileMetadataDTO;
|
import com.bonus.core.allocation.mobile.dto.MobileMetadataDTO;
|
||||||
|
|
@ -193,7 +194,11 @@ public class CustPhotoServiceImpl extends ServiceImpl<CustPhotoMapper, CustPhoto
|
||||||
}
|
}
|
||||||
|
|
||||||
this.custInfoService.updateCustPhotoUrl(custId, cutPath);
|
this.custInfoService.updateCustPhotoUrl(custId, cutPath);
|
||||||
this.custAccTempService.update(new CustAccTemp().setCustId(custId).setCustPhotoUrl(cutPath), new LambdaQueryWrapper<CustAccTemp>().eq(CustAccTemp::getCustId, custId));
|
//TODO 替换 123 -> 当前登录人的手机号
|
||||||
|
this.custAccTempService.update(
|
||||||
|
new CustAccTemp().setCustId(custId).setCustPhotoUrl(cutPath).setUpby("123"),
|
||||||
|
new LambdaQueryWrapper<CustAccTemp>().eq(CustAccTemp::getCustId, custId)
|
||||||
|
);
|
||||||
this.delayedMessageSender.asyncDelaySendToDevice(DelayedMessageTypeEnum.PHOTO);
|
this.delayedMessageSender.asyncDelaySendToDevice(DelayedMessageTypeEnum.PHOTO);
|
||||||
this.delayedMessageSender.asyncDelaySendToDevice(DelayedMessageTypeEnum.EXPIRED);
|
this.delayedMessageSender.asyncDelaySendToDevice(DelayedMessageTypeEnum.EXPIRED);
|
||||||
this.dcPushUserDataServiceApi.editUser(custId);
|
this.dcPushUserDataServiceApi.editUser(custId);
|
||||||
|
|
|
||||||
Reference in New Issue