|
@@ -97,8 +97,22 @@ class Notify extends Api
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ public function test(){
|
|
|
+// $this->takecash(5,10000,'take_cash',1);
|
|
|
+
|
|
|
+ $this->shouyi(1,10000,'user_match_audio_log',1);
|
|
|
+// $this->shouyi(2,10000,'user_match_audio_log',1);
|
|
|
+// $this->shouyi(3,10000,'user_match_audio_log',1);
|
|
|
+
|
|
|
+// $this->recharge(5,10000,'user_match_audio_log',1);
|
|
|
+// $this->recharge(4,10000,'user_match_audio_log',1);
|
|
|
+// $this->recharge(3,10000,'user_match_audio_log',1);
|
|
|
+// $this->recharge(2,10000,'user_match_audio_log',1);
|
|
|
+// $this->recharge(1,10000,'user_match_audio_log',1);
|
|
|
+ }
|
|
|
+
|
|
|
//普通邀请关系,提现
|
|
|
- private function takecash($user_id,$gold,$table,$table_id){
|
|
|
+ public function takecash($user_id,$gold,$table,$table_id){
|
|
|
//精确小数点
|
|
|
bcscale(1);
|
|
|
|
|
@@ -122,7 +136,7 @@ class Notify extends Api
|
|
|
}
|
|
|
|
|
|
//四大收益,视频,音频,私聊,礼物
|
|
|
- private function shouyi($user_id,$gold,$table,$table_id){
|
|
|
+ public function shouyi($user_id,$gold,$table,$table_id){
|
|
|
//精确小数点
|
|
|
bcscale(1);
|
|
|
|
|
@@ -198,7 +212,7 @@ class Notify extends Api
|
|
|
|
|
|
$shouyi_b2a_rate = config('site.shouyi_b2a_rate');
|
|
|
$jewelA = bcdiv(bcmul($jewelB,$shouyi_b2a_rate),100);
|
|
|
-// $jewelA = bcadd($jewelA,$jewelB);
|
|
|
+ $jewelA = bcadd($jewelA,$jewelB);
|
|
|
|
|
|
$result = model('Wallet')->lockChangeAccountRemain($intro_intro_userinfo['id'],'agentjewel',$jewelA,52, $userinfo['username'].$remark,$table,$table_id);
|
|
|
if($result['status']===false)
|
|
@@ -215,7 +229,7 @@ class Notify extends Api
|
|
|
}
|
|
|
|
|
|
//充值后奖金
|
|
|
- public function recharge($user_id,$gold,$payorder_id){
|
|
|
+ public function recharge($user_id,$gold,$table,$payorder_id){
|
|
|
//精确小数点
|
|
|
bcscale(1);
|
|
|
|
|
@@ -281,7 +295,7 @@ class Notify extends Api
|
|
|
|
|
|
$recharge_b2a_rate = config('site.recharge_b2a_rate');
|
|
|
$jewelA = bcdiv(bcmul($jewelB,$recharge_b2a_rate),100);
|
|
|
-// $jewelA = bcadd($jewelA,$jewelB);
|
|
|
+ $jewelA = bcadd($jewelA,$jewelB);
|
|
|
|
|
|
$result = model('Wallet')->lockChangeAccountRemain($intro_intro_userinfo['id'],'agentjewel',$jewelA,51, $userinfo['username'].'充值','pay_order',$payorder_id);
|
|
|
if($result['status']===false)
|
|
@@ -339,7 +353,7 @@ class Notify extends Api
|
|
|
|
|
|
$recharge_b2a_rate = config('site.recharge_b2a_rate');
|
|
|
$jewelA = bcdiv(bcmul($jewelB,$recharge_b2a_rate),100);
|
|
|
-// $jewelA = bcadd($jewelA,$jewelB);
|
|
|
+ $jewelA = bcadd($jewelA,$jewelB);
|
|
|
|
|
|
$result = model('Wallet')->lockChangeAccountRemain($intro_intro_intro_userinfo['id'],'agentjewel',$jewelA,51, $userinfo['username'].'充值','pay_order',$payorder_id);
|
|
|
if($result['status']===false)
|