|
@@ -217,10 +217,7 @@ const Model = {
|
|
|
* goodForReport({ payload }, { call, put }) {
|
|
|
const { id, report_id, user_id, action } = payload;
|
|
|
let res = yield call(goodReport, id, report_id);
|
|
|
- console.log('aaa')
|
|
|
- yield call(recordAction, user_id, id, action);
|
|
|
if (res.status === 200) {
|
|
|
- console.log(res)
|
|
|
yield call(recordAction, user_id, id, action);
|
|
|
}
|
|
|
},
|
|
@@ -232,8 +229,10 @@ const Model = {
|
|
|
|
|
|
* badForReport({ payload }, { call, put }) {
|
|
|
const { id, report_id, user_id, action } = payload;
|
|
|
- yield call(badReport, id, report_id);
|
|
|
- yield call(recordAction, user_id, id, action);
|
|
|
+ let res = yield call(badReport, id, report_id);
|
|
|
+ if(res.status === 200){
|
|
|
+ yield call(recordAction, user_id, id, action);
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
* cancelBadForReport({ payload }, { call, put }) {
|