This commit is contained in:
doudou201703
2026-08-06 20:39:45 +08:00
parent 046fac6dc1
commit 3ff0faebb9
38 changed files with 1029 additions and 611 deletions
@@ -43,9 +43,14 @@ class 用户配送地址ViewSets(ViewSet):
用户所在街道 = pydash.get(obj=address, path="detailInfo")
weiuser.objects.filter(unionid=self_user_unionid).update(
uesr_手机号码=用户手机号码, user_昵称=用户昵称,
user_省份=用户所在省, user_城市=用户所在市, user_区县=用户所在区县,
user_街道信息=用户所在街道
)
six_user六果对象 = weiuser.objects.get(unionid=self_user_unionid)
if not six_user六果对象.user_区县 or not six_user六果对象.user_城市 or not six_user六果对象.user_省份:
six_user六果对象.user_省份 = 用户所在省
six_user六果对象.user_城市 = 用户所在市
six_user六果对象.user_区县 = 用户所在区县,
six_user六果对象.user_街道信息 = 用户所在街道
six_user六果对象.save()
@action(detail=False, methods=["post"], url_path="first_add")
def 首次添加用户收件地址(self, request: Request):