Commit ba79a3fc by zhangzhi

list stores bug

parent d6be6953
...@@ -44,7 +44,7 @@ const getStoreInfo = (data)=>{ ...@@ -44,7 +44,7 @@ const getStoreInfo = (data)=>{
}; };
const listStores = ()=>{ const listStores = ()=>{
return (dispatch)=>{ return (dispatch)=>{
fetch(domain + 'machine_pad/power_cut_find_store',{ fetch(domain + 'machine_pad/list_store',{
credentials : 'include', credentials : 'include',
method : 'POST', method : 'POST',
mode : 'cors', mode : 'cors',
...@@ -52,7 +52,7 @@ const listStores = ()=>{ ...@@ -52,7 +52,7 @@ const listStores = ()=>{
body:JSON.stringify({}) body:JSON.stringify({})
}).then((response)=>response.json()) }).then((response)=>response.json())
.then(json=>{ .then(json=>{
UTILPATH.myLogger.info("power_cut_find_store ",json); UTILPATH.myLogger.info("pad list stores ",json);
if(json.meta.success){ if(json.meta.success){
let storeList = json.data; let storeList = json.data;
dispatch(saveStoreList(storeList)) dispatch(saveStoreList(storeList))
...@@ -61,7 +61,7 @@ const listStores = ()=>{ ...@@ -61,7 +61,7 @@ const listStores = ()=>{
//没有店铺信息 //没有店铺信息
} }
}).catch(e=>{ }).catch(e=>{
UTILPATH.myLogger.error(`power_cut_find_store ${e}`); UTILPATH.myLogger.error(`pad list stores ${e}`);
dispatch(listStores()); dispatch(listStores());
}); });
} }
......
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