fix
This commit is contained in:
@@ -131,7 +131,6 @@ function getIsvToken() {
|
|||||||
$.post(jdUrl('genToken', body), async (err, resp, data) => {
|
$.post(jdUrl('genToken', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -155,7 +154,6 @@ function getIsvToken2() {
|
|||||||
$.post(jdUrl('isvObfuscator', body), async (err, resp, data) => {
|
$.post(jdUrl('isvObfuscator', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -178,7 +176,6 @@ function getActCk() {
|
|||||||
$.get(taskUrl("dingzhi/book/develop/activity", `activityId=${ACT_ID}`), (err, resp, data) => {
|
$.get(taskUrl("dingzhi/book/develop/activity", `activityId=${ACT_ID}`), (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if($.isNode())
|
if($.isNode())
|
||||||
@@ -206,7 +203,6 @@ function getActInfo() {
|
|||||||
$.post(taskPostUrl('dz/common/getSimpleActInfoVo', `activityId=${ACT_ID}`), async (err, resp, data) => {
|
$.post(taskPostUrl('dz/common/getSimpleActInfoVo', `activityId=${ACT_ID}`), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -232,7 +228,6 @@ function getToken() {
|
|||||||
$.post(taskPostUrl('customer/getMyPing', body), async (err, resp, data) => {
|
$.post(taskPostUrl('customer/getMyPing', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -256,7 +251,6 @@ function getUserInfo() {
|
|||||||
$.post(taskPostUrl('wxActionCommon/getUserInfo', body), async (err, resp, data) => {
|
$.post(taskPostUrl('wxActionCommon/getUserInfo', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -285,7 +279,6 @@ function getActContent(info = false, shareUuid = '') {
|
|||||||
$.post(taskPostUrl('dingzhi/book/develop/activityContent', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/book/develop/activityContent', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -351,7 +344,6 @@ function doHelpList(taskType, value) {
|
|||||||
$.post(taskPostUrl('dingzhi/taskact/common/getDayShareRecord', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/taskact/common/getDayShareRecord', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -375,7 +367,6 @@ function doTask(taskType, value) {
|
|||||||
$.post(taskPostUrl('dingzhi/book/develop/saveTask', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/book/develop/saveTask', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -405,7 +396,6 @@ function draw() {
|
|||||||
$.post(taskPostUrl('dingzhi/book/develop/startDraw', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/book/develop/startDraw', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -437,7 +427,6 @@ function getAllBook() {
|
|||||||
$.post(taskPostUrl('dingzhi/book/develop/getAllBook', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/book/develop/getAllBook', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -469,7 +458,6 @@ function buyBook(bookUuid, num) {
|
|||||||
$.post(taskPostUrl('dingzhi/book/develop/buyBook', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/book/develop/buyBook', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -494,7 +482,6 @@ function getMyBook() {
|
|||||||
$.post(taskPostUrl('dingzhi/book/develop/getMyBook', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/book/develop/getMyBook', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -524,7 +511,6 @@ function upBook(bookUuid) {
|
|||||||
$.post(taskPostUrl('dingzhi/book/develop/upBook', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/book/develop/upBook', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
@@ -551,7 +537,6 @@ function chargeGold() {
|
|||||||
$.post(taskPostUrl('dingzhi/book/develop/chargeGold', body), async (err, resp, data) => {
|
$.post(taskPostUrl('dingzhi/book/develop/chargeGold', body), async (err, resp, data) => {
|
||||||
try {
|
try {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log(`${err},${jsonParse(resp.body)['message']}`)
|
|
||||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||||
} else {
|
} else {
|
||||||
if (safeGet(data)) {
|
if (safeGet(data)) {
|
||||||
|
Reference in New Issue
Block a user