Commit 8000fb49 authored by wildfirecode's avatar wildfirecode

1

parent 247d4654
......@@ -4,7 +4,7 @@ import { DataManager } from "../libs/tw/manager/DataManager";
/**
* callback回调1是有奖,0是没有奖或者风控
*/
export default (callback) => {
export default (callback?) => {
NetManager.ins.hc_redBombAward((success) => {
if (success) {
const data = DataManager.ins.getData('hc_redBombAward').data;
......@@ -17,5 +17,10 @@ export default (callback) => {
} else {
callback(0);
}
NetManager.ins.hc_redBombBaseInfo(()=>{});
});
}
export const getRedBombTimes = ()=>{
return DataManager.ins.getData('hc_redBombBaseInfo');
}
\ No newline at end of file
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