1
This commit is contained in:
parent
217b8451f5
commit
199d7af12d
@ -47,7 +47,7 @@ class Contribution extends BaseModel
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function addHistory($gold,$point){
|
public static function addHistory($gold,$point,$controller,$action){
|
||||||
SqlHelper::insert(
|
SqlHelper::insert(
|
||||||
myself()->_getSelfMysql(),
|
myself()->_getSelfMysql(),
|
||||||
't_contribution_history',
|
't_contribution_history',
|
||||||
@ -55,6 +55,8 @@ class Contribution extends BaseModel
|
|||||||
'account_id' => myself()->_getAccountId(),
|
'account_id' => myself()->_getAccountId(),
|
||||||
'consume_gold' => $gold,
|
'consume_gold' => $gold,
|
||||||
'contribution' => $point,
|
'contribution' => $point,
|
||||||
|
'controller' => $controller,
|
||||||
|
'action' => $action,
|
||||||
'createtime' => myself()->_getNowTime(),
|
'createtime' => myself()->_getNowTime(),
|
||||||
'modifytime' => myself()->_getNowTime(),
|
'modifytime' => myself()->_getNowTime(),
|
||||||
)
|
)
|
||||||
|
@ -17,7 +17,7 @@ class ContributionService extends BaseService {
|
|||||||
}
|
}
|
||||||
myself()->_giveContributionPoint(round($params/10,2));
|
myself()->_giveContributionPoint(round($params/10,2));
|
||||||
myself()->_callModelStatic('Contribution', 'add', round($params/10,2));
|
myself()->_callModelStatic('Contribution', 'add', round($params/10,2));
|
||||||
myself()->_callModelStatic('Contribution', 'addHistory', $params, round($params/10,2));
|
myself()->_callModelStatic('Contribution', 'addHistory', $params, round($params/10,2),getReqVal('c', ''),getReqVal('a',''));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user