|
|
|
@ -36,6 +36,7 @@ class firstpayEvent extends Controller {
|
|
|
|
|
$add['op_account']=session("user_auth.username");
|
|
|
|
|
$add['create_time']=NOW_TIME;
|
|
|
|
|
$prov=M("provide","tab_")->add($add);
|
|
|
|
|
$this->feAddOperationLog($account,$amount);
|
|
|
|
|
$this->success("提交成功",U("Provide/lists",["type"=>2]));
|
|
|
|
|
}else{
|
|
|
|
|
$this->error("该玩家还未玩此游戏",U("bdfirstpay"));
|
|
|
|
@ -91,6 +92,7 @@ class firstpayEvent extends Controller {
|
|
|
|
|
$add['create_time']=NOW_TIME;
|
|
|
|
|
$prov=M("provide","tab_")->add($add);
|
|
|
|
|
if($prov){
|
|
|
|
|
$this->feAddOperationLog($add['user_account'],$amount);
|
|
|
|
|
$a++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -179,7 +181,10 @@ class firstpayEvent extends Controller {
|
|
|
|
|
$arr['amount'] = (double)$v['C'];
|
|
|
|
|
$arr['create_time'] = NOW_TIME;
|
|
|
|
|
$arr['create_time'] = NOW_TIME;
|
|
|
|
|
D('Provide')->add($arr);
|
|
|
|
|
$res = D('Provide')->add($arr);
|
|
|
|
|
if($res){
|
|
|
|
|
$this->feAddOperationLog($arr['user_account'],$arr['amount']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$a = json_encode($errorList);
|
|
|
|
|
$json = urlencode(json_encode($errorList));
|
|
|
|
@ -189,4 +194,15 @@ class firstpayEvent extends Controller {
|
|
|
|
|
$this->assign ( 'json', $json);
|
|
|
|
|
$this->success('成功:'.$succNum.';失败:'.$errorNum,U("Provide/lists",["type"=>2]));
|
|
|
|
|
}
|
|
|
|
|
//操作日志
|
|
|
|
|
public function feAddOperationLog($user,$num)
|
|
|
|
|
{
|
|
|
|
|
$optionarr = array(
|
|
|
|
|
"op_type"=>0,
|
|
|
|
|
"key"=>($user."/".$num),
|
|
|
|
|
"menu"=>"充值-绑币订单-后台发放玩家-绑币发放",
|
|
|
|
|
"url"=>U("Provide/lists",array("model"=>"provide","user_account"=>$user))
|
|
|
|
|
);
|
|
|
|
|
addOperationLog($optionarr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|