Commit ba79a3fc by zhangzhi

list stores bug

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