修改提示
This commit is contained in:
19
jd_nh.js
19
jd_nh.js
@@ -113,7 +113,7 @@ function getIsvToken() {
|
||||
$.post(config,async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
@@ -146,7 +146,7 @@ function getIsvToken2() {
|
||||
$.post(config,async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
@@ -169,7 +169,7 @@ function getActCk() {
|
||||
$.get(taskUrl("dingzhi/vm/template/activity/940531", `activityId=${ACT_ID}`), (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
cookie = `${cookie};`
|
||||
@@ -198,7 +198,7 @@ function getActInfo() {
|
||||
$.post(taskPostUrl('dz/common/getSimpleActInfoVo', `activityId=${ACT_ID}`), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
@@ -221,7 +221,7 @@ function getMyPing() {
|
||||
$.post(taskPostUrl('customer/getMyPing', `userId=${$.shopId}&token=${$.token2}&fromType=APP`), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
@@ -247,7 +247,7 @@ function getUserInfo() {
|
||||
$.post(taskPostUrl('wxActionCommon/getUserInfo', body), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
@@ -276,7 +276,7 @@ function getActContent(info=false, shareUuid = '') {
|
||||
`activityId=${ACT_ID}&pin=${encodeURIComponent($.pin)}&pinImg=${$.pinImg}&nick=${$.nick}&cjyxPin=&cjhyPin=&shareUuid=${shareUuid}`), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
@@ -304,6 +304,7 @@ function getActContent(info=false, shareUuid = '') {
|
||||
let res = await getTaskInfo(task.taskType)
|
||||
let vo = res[0]
|
||||
await doTask(vo.type, vo.value)
|
||||
await $.wait(500)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -326,7 +327,7 @@ function getTaskInfo(taskType, value) {
|
||||
$.post(taskPostUrl('dingzhi/vm/template/taskInfo', body), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
@@ -354,7 +355,7 @@ function doTask(taskType, value) {
|
||||
$.post(taskPostUrl('dingzhi/vm/template/saveTask', body), async (err, resp, data) => {
|
||||
try {
|
||||
if (err) {
|
||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
||||
console.log(`${err}`)
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
if (safeGet(data)) {
|
||||
|
Reference in New Issue
Block a user