|
|
|
@ -1285,7 +1285,17 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
$rfres;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public function getPromoteCompanyGameRatio($company_id,$game_ids,$begintime,$endtime,$company_belong=false){
|
|
|
|
|
/**
|
|
|
|
|
* 按公司获取游戏分成比例
|
|
|
|
|
*
|
|
|
|
|
* @param [type] $company_id 公司id
|
|
|
|
|
* @param [type] $game_ids 游戏关联id
|
|
|
|
|
* @param [type] $begintime 开始时间
|
|
|
|
|
* @param [type] $endtime 结束时间
|
|
|
|
|
* @param boolean $company_belong 公司内外团
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
protected function getPromoteCompanyGameRatio($company_id,$game_ids,$begintime,$endtime,$company_belong=false){
|
|
|
|
|
//获取默认比例
|
|
|
|
|
if($company_belong === false){
|
|
|
|
|
$company_belong = M("PromoteCompany","tab_")->field("company_belong")->where("id='{$company_id}'")->find()['company_belong'];
|
|
|
|
|