|
@@ -106,16 +106,14 @@ CMD.search_new_id = async function(bookId,call_back){
|
|
|
const response = await axios(config);
|
|
|
console.log("response:",response)
|
|
|
if(response.data.code!=0){
|
|
|
- throw response.data
|
|
|
+ return ""
|
|
|
}
|
|
|
if(response.data.data.length<=0){
|
|
|
throw response.data
|
|
|
}
|
|
|
return response.data.data[0];
|
|
|
- } catch (error) {
|
|
|
- if(error.code!=0){
|
|
|
- return ""
|
|
|
- }
|
|
|
+ } catch (e) {
|
|
|
+ console.error(e)
|
|
|
return null
|
|
|
}
|
|
|
}
|