Esempio n. 1
0
 def deal(self):
     
     scheme_id = 104
     seri_data = l_appsconfig.req_globalconfig_common(scheme_id)
     if seri_data and seri_data[2]:
         dict_data = api_common.convert_seridata2dict(seri_data[2], "Groups")
         self.response['rescode'] = 0
         self.response['resmsg'] = '获取成功'
         self.response['data'] = dict_data
Esempio n. 2
0
    def deal(self):
        self.check_request([("appId", "应用id")])
        seri_data = l_appinfo.req_appinfo_common(self.request["appId"])

        if seri_data and seri_data[2]:
            dict_data = api_common.convert_seridata2dict(
                seri_data[2], "AppInfo")
            self.response['rescode'] = 0
            self.response['resmsg'] = '获取成功'
            self.response['data'] = dict_data
Esempio n. 3
0
    def deal(self):

        self.check_request([("groupId", "分组Id"), ("pageSize", "页尺寸"),
                            ("pageIndex", "页码")])
        chnno = api_common.get_channelno_from_clientver(
            self.comm_args.get("clientVer", ""))
        groupid = self.request["groupId"]
        seri_data = l_applist.req_groupelems_common(chnno, groupid,
                                                    self.request["pageSize"],
                                                    self.request["pageIndex"])

        if seri_data and seri_data[2]:
            dict_data = api_common.convert_seridata2dict(
                seri_data[2], "GroupElems")
            self.response['rescode'] = 0
            self.response['resmsg'] = '获取成功'
            self.response['data'] = dict_data
Esempio n. 4
0
    def deal(self):
        self.check_request([("appId","应用id")])
        appid = self.request["appId"]
        app_class = self.request.get("appClass", 0)
        app_type = self.request.get("appType", 0)
        page_size = self.request.get("pageSize", 12)
        page_index = self.request.get("pageIndex", 1)
        order_type = self.request.get("orderType", 0)
        chnno = api_common.get_channelno_from_clientver(self.comm_args.get("clientVer",""))

        seri_data = l_apprecomm.req_recommapp_common(appid, chnno, '', app_type, order_type)

        if seri_data and seri_data[2]:
            dict_data = api_common.convert_seridata2dict(seri_data[2], "GroupElems")
            self.response['rescode'] = 0
            self.response['resmsg'] = '获取成功'
            self.response['data'] = dict_data
Esempio n. 5
0
    def deal(self):

        self.check_request([("SearchKeyStr", "搜索关键字")])
        chnno = api_common.get_channelno_from_clientver(
            self.comm_args.get("clientVer", ""))
        search_key = self.request["SearchKeyStr"]
        app_class = self.request.get("appClass", 0)
        app_type = self.request.get("appType", 0)
        page_size = self.request.get("pageSize", 30)
        page_index = self.request.get("pageIndex", 1)
        order_type = self.request.get("orderType", 0)

        # 搜索接口暂没缓存
        seri_data = l_applist.req_applist4searchkey_common(
            chnno, search_key, app_class, app_type, page_size, page_index,
            order_type)

        self.response['rescode'] = 0
        self.response['resmsg'] = '获取成功'

        if seri_data:
            dict_data = api_common.convert_seridata2dict(
                seri_data, "GroupElems")
            self.response['data'] = dict_data