Commit 4e59e5f7 authored by lee_mingzhu's avatar lee_mingzhu

修复保存地址的bug

parent eed2ac83
......@@ -257,7 +257,7 @@ public class InnerController {
return JsonResult.buildErrorStateResult(null, null);
}
Address addressObj = addressService.findByUserId(userId);
if (address == null) {
if (addressObj == null) {
addressObj = new Address();
Timestamp now = new Timestamp(System.currentTimeMillis());
addressObj.setCreatedAt(now);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment