def get_daily_sales(token, start_at=Common.current_time()[:10], end_at=None, page=1, pageSize=15, order="desc", orderField=None, isDailySale=None, status=None, product_name=None, approval_status=None): data = { "start_at": start_at, # 开团时间格式:2019-3-28,默认今天 "end_at": end_at, "page": page, "pageSize": pageSize, "order": order, "orderField": orderField, "isDailySale": isDailySale, # 悟空团编辑时调用,值是1 "status": status, "product_name": product_name, "approval_status": approval_status } obj = Http.get(Common.first_url() + "admin/DailySales", data, token) print("获取悟空团管理列表" + str(obj.status_code)) Common.out_error(obj) return obj
def get_product_info(token, product_id): data = {"product_id": product_id} obj = Http.get(Common.first_url() + "admin/ProductInfo", data, token) print("获取产品详情" + str(obj.status_code)) Common.out_error(obj) return obj