|
@@ -58,7 +58,7 @@ class Plantask extends Controller
|
|
|
|
|
|
//奖励
|
|
|
$bili = config('site.orderpaid_zhitui_bili') ?: 5;
|
|
|
- $score = bcdiv(bcmul($jishu,$bili,2),100,2);
|
|
|
+ $score = bcdiv(bcmul($jishu,$bili,0),100,0);
|
|
|
if($score > 0){
|
|
|
$rs_wallet = $walletmodel->lockChangeAccountRemain($intro_uid,'score',$score,3,'直推代理奖励'.$remark_shaoshang,'unishop_order',$order['id'],$order['user_id']);
|
|
|
if($rs_wallet['status'] === false){
|
|
@@ -153,7 +153,7 @@ class Plantask extends Controller
|
|
|
$jicha_bili = $rule['bili'] - $buyer_rule['bili'];
|
|
|
|
|
|
//给直推
|
|
|
- $score = bcdiv(bcmul($order['order_shouyi'],$jicha_bili,2),100,2);
|
|
|
+ $score = bcdiv(bcmul($order['order_shouyi'],$jicha_bili,0),100,0);
|
|
|
// dump($score);
|
|
|
$remark = $intro_uid.':业绩'.$yeji.','.$rule['name'].'代理;'.$order['user_id'].':业绩'.$buyer_yeji.','.$buyer_rule['name'].'代理';
|
|
|
//echo $remark;
|