|
|
|
@ -183,6 +183,25 @@ class PromoteCoinController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($res) {
|
|
|
|
|
$keyname = getPromoteAccount(I('promote_id'));
|
|
|
|
|
$keyname .= ("/".abs(I('num')));
|
|
|
|
|
$optionarr = array(
|
|
|
|
|
"op_type"=>1,
|
|
|
|
|
"key"=>$keyname,
|
|
|
|
|
"menu"=>"充值-平台币订单-后台发放(推广员)-",
|
|
|
|
|
"url"=>U("PromoteCoin/send_lists",array("model"=>"PromoteCoin","promote_id"=>I('promote_id')))
|
|
|
|
|
);
|
|
|
|
|
$promote_type = $_GET['promote_type'];
|
|
|
|
|
if($promote_type == '1'){
|
|
|
|
|
$optionarr['menu'] .= "给会长发放";
|
|
|
|
|
}elseif($promote_type == '2'){
|
|
|
|
|
$optionarr['menu'] .= "给部门长发放";
|
|
|
|
|
}elseif($promote_type == '3'){
|
|
|
|
|
$optionarr['menu'] .= "给组长发放";
|
|
|
|
|
}elseif($promote_type == '4'){
|
|
|
|
|
$optionarr['menu'] .= "给组员发放";
|
|
|
|
|
}
|
|
|
|
|
addOperationLog($optionarr);
|
|
|
|
|
$this->success('操作成功!', U($url, array('model' => $model['name'], 'type' => $tt)));
|
|
|
|
|
} else {
|
|
|
|
|
$this->error('操作失败!', U($url, array('model' => $model['name'], 'type' => $tt)));
|
|
|
|
|