Explorar o código

套餐语言7

chenshibin %!s(int64=4) %!d(string=hai) anos
pai
achega
448ef6ad6c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Controller/CloudStorage.py

+ 2 - 2
Controller/CloudStorage.py

@@ -1008,7 +1008,7 @@ class CloudStorageView(View):
 
         # if dv_qs[0]['vodPrimaryUserID'] != '' and dv_qs[0]['vodPrimaryUserID'] != userID:
         #     return response.json(10033)
-        smqs = Store_Meal.objects.filter(id=rank, pay_type=pay_type). \
+        smqs = Store_Meal.objects.filter(id=rank, pay_type=pay_type, lang__lang=lang). \
             values('currency', 'price', 'lang__content', 'day',
                    'commodity_type', 'lang__title',
                    'expire', 'commodity_code', 'discount_price')
@@ -1174,7 +1174,7 @@ class CloudStorageView(View):
 
         orderID = CommonService.createOrderID()
         nowTime = int(time.time())
-        smqs = Store_Meal.objects.filter(id=rank). \
+        smqs = Store_Meal.objects.filter(id=rank,lang__lang=lang). \
             values("day", "bucket_id", "bucket__storeDay", "expire", 'lang__content', 'price', 'currency', 'commodity_type')
         if not smqs.exists():
             return response.json(173)