Commit 89dd11d9 authored by 俞嘉婷's avatar 俞嘉婷

feat: 正式id

parent 7e0430fc
...@@ -22,10 +22,10 @@ export const prevOptions = { ...@@ -22,10 +22,10 @@ export const prevOptions = {
export const publishOptions = { export const publishOptions = {
BASE_URL: 'https://activity-6.m.duiba.com.cn', BASE_URL: 'https://activity-6.m.duiba.com.cn',
appKey: '3fLNcnNTvCd3f3XaBAt7mP95fmDU', appKey: '3fLNcnNTvCd3f3XaBAt7mP95fmDU',
projectId: "publish", projectId: "p8066b301",
} }
export default prevOptions; export default publishOptions;
export enum API_PATH { export enum API_PATH {
......
...@@ -59,6 +59,7 @@ export function request(config: IReqConfig) { ...@@ -59,6 +59,7 @@ export function request(config: IReqConfig) {
data: params, data: params,
header, header,
success(response) { success(response) {
console.info(`%c 接口参数: ${url}\n`, "font-size: 20px; color: rgb(25, 164, 9)", params);
console.info(`%c 收到接口返回值: ${url}\n`, "font-size: 20px; color: rgb(185, 155, 249)", response); console.info(`%c 收到接口返回值: ${url}\n`, "font-size: 20px; color: rgb(185, 155, 249)", response);
if (+response.statusCode === 200) { if (+response.statusCode === 200) {
resolve(response.data as IResData); resolve(response.data as IResData);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment