Пример #1
0
 def post(self, request, *args, **kwargs):
     model = request.POST.get('model', "score")  # 默认查询积分
     store_uuid = request.POST.get('store_uuid', "")
     customer_uuid = request.POST.get('customer_uuid', "")
     if model == 'score':
         return MSG.sys_success(), action_store.get_store_customer_score(
             store_uuid, customer_uuid)
     if model == 'prize':
         return MSG.sys_success(), action_store.get_store_customer_prize(
             store_uuid, customer_uuid)
     return MSG.sys_success(), action_store.get_store_customer_share(
         store_uuid, customer_uuid)
Пример #2
0
 def post(self, request, *args, **kwargs):
     store_uuid = request.POST.get('store_uuid', "")
     seller_uuid = request.POST.get('seller_uuid', "")
     customer_uuid = request.POST.get('customer_uuid', "")
     if customer_uuid != "":
         action_store.check_rel_store_customer(store_uuid, customer_uuid)
     return MSG.sys_success(), action_store.get_info(store_uuid)
Пример #3
0
 def post(self, request, *args, **kwargs):
     article_uuid = request.POST.get('article_uuid', '')
     article_dict = action_search.get_article(article_uuid)
     _dict = {
         'article_dict': article_dict,
     }
     return MSG.sys_success(), _dict
Пример #4
0
 def post(self, request, *args, **kwargs):
     tag_uuid = request.POST.get('tag_uuid', '')
     poi_list = action_search.get_poi_by_tag(tag_uuid)
     _dict = {
         'poi_list': poi_list,
     }
     return MSG.sys_success(), _dict
Пример #5
0
 def post(self, request, *args, **kwargs):
     model = request.POST.get('model', 'score')
     seller_uuid = request.POST.get('seller_uuid', '')
     page_num = int(request.POST.get('page_num', 0))
     range = int(request.POST.get('range', 10))
     print(page_num, range)
     return MSG.sys_success(), action_store.get_data_seller(
         model, seller_uuid, page_num, range)
Пример #6
0
 def post(self, request, *args, **kwargs):
     poi_id = request.POST.get('poi_id', '')
     poi_dict = action_search.get_poi_by_id(poi_id)
     article_list = action_search.get_article_list_by_poi(poi_id)
     _dict = {
         'poi_dict': poi_dict,
         'article_list': article_list,
     }
     return MSG.sys_success(), _dict
Пример #7
0
    def post(self, request, *args, **kwargs):
        token = request.POST.get('token', "")
        start = request.POST.get('start', "")
        end = request.POST.get('end', "")

        # 强制token
        if token != "bushitan":
            return MSG.scan_prize_none(), {}
        wm_list = action_wm.get_ticket_start_end(start, end)
        return MSG.sys_success(), {"wm_list": wm_list}
Пример #8
0
    def post(self, request, *args, **kwargs):

        nick_name = request.POST.get('nickName', '')
        nick_name = base64.b64encode(nick_name.encode('utf-8'))
        print(nick_name)

        decode = base64.b64decode(nick_name)
        print(decode)

        action_test.t1()
        return MSG.sys_success(), {}
Пример #9
0
 def post(self, request, *args, **kwargs):
     # store_uuid = request.POST.get('store_uuid','')
     seller_uuid = request.POST.get('seller_uuid', '')
     # print(seller_uuid)
     qr_data = action_store.get_auto_share_qr_data(seller_uuid)
     # 生成自助二维码
     access_token = action_customer.get_access_token()
     qr = action_customer.get_un_limit_qr(access_token, qr_data)
     return MSG.sys_success(), {
         'token': action_customer.get_access_token(),
         "qr": qr
     }
Пример #10
0
 def post(self, request, *args, **kwargs):
     # tag_list = action_search.get_tag()
     # poi_list = action_search.get_poi_by_tag(tag_list[0]['uuid'])
     _dict = {
         'drink_list':
         action_search.get_poi_by_tag(
             'be62eade-9566-11e9-940a-e95aa2c51b5d'),
         'eat_list':
         action_search.get_poi_by_tag(
             'e946a302-9241-11e9-93cb-e95aa2c51b5d'),
         'play_list':
         action_search.get_poi_by_tag(
             'c275b3ae-9566-11e9-8016-e95aa2c51b5d'),
     }
     return MSG.sys_success(), _dict
Пример #11
0
 def post(self, request, *args, **kwargs):
     customer_uuid = request.POST.get('customer_uuid', "")
     return MSG.sys_success(), action_store.get_store_customer_list(
         customer_uuid)
Пример #12
0
 def post(self, request, *args, **kwargs):
     store_uuid = request.POST.get('store_uuid', '')
     # seller_uuid = request.POST.get('seller_uuid','')
     return MSG.sys_success(), action_store.get_host_data(store_uuid)
Пример #13
0
 def post(self, request, *args, **kwargs):
     store_uuid = request.POST.get('store_uuid', "")
     # return MSG.sys_success() ,{'ad':action_store_cus.get_current_store_ad_list(store_uuid)}
     return MSG.sys_success(), action_store_cus.get_current_store_ad_list(
         store_uuid)
Пример #14
0
 def post(self, request, *args, **kwargs):
     wm_short_uuid = request.POST.get('wm_short_uuid', "")
     return MSG.sys_success(), action_wm.get_ticket_info(wm_short_uuid)
Пример #15
0
 def post(self, request, *args, **kwargs):
     customer_uuid = request.POST.get('customer_uuid', "")
     return MSG.sys_success(), {'info_list': info_map.pop(customer_uuid)}
Пример #16
0
 def post(self, request, *args, **kwargs):
     store_id = request.POST.get('store_id', '')
     _dict = {
         'poi_list': action_search.get_poi_by_store(store_id=store_id),
     }
     return MSG.sys_success(), _dict