10e96bb805e82097a9e835fc39e80a59R88">88
+    province = request.POST.get('province', '')
89
+    city = request.POST.get('city', '')
90
+    county = request.POST.get('county', '')
88 91
     address = request.POST.get('address', '')
89 92
 
90 93
     amount = int(request.POST.get('amount', 0))
@@ -97,6 +100,9 @@ def live_order_create(request):
97 100
         user = UserInfo.objects.get(user_id=user_id, status=True)
98 101
         user.consignee_name = name
99 102
         user.consignee_phone = phone
103
+        user.consignee_province = province
104
+        user.consignee_city = city
105
+        user.consignee_county = county
100 106
         user.consignee_address = address
101 107
         user.save()
102 108
     except UserInfo.DoesNotExist:
@@ -140,6 +146,9 @@ def live_order_create(request):
140 146
         trade_type=trade_type,
141 147
         name=name,
142 148
         phone=phone,
149
+        province=province,
150
+        city=city,
151
+        county=county,
143 152
         address=address,
144 153
     )
145 154
 

CarePatch/thermometer - Gogs: Go Git Service

2 Ревизии (0dec8020cc11d7c40a4d7cef01970f1fc39bba14)

Автор SHA1 Съобщение Дата
  huangqimin001 c6838a7aad :art: Basic Realize преди 5 години
  huangqimin001 a6bdd3725f :tada: Initial преди 5 години