Browse Source

测试奖金

lizhen_gitee 1 year ago
parent
commit
68a61bff81
1 changed files with 3 additions and 1 deletions
  1. 3 1
      application/index/controller/Plantask.php

+ 3 - 1
application/index/controller/Plantask.php

@@ -155,8 +155,10 @@ class Plantask extends Controller
         //给直推
         $score = bcdiv(bcmul($order['order_shouyi'],$jicha_bili,2),100,2);
 //        dump($score);
+        $remark = $intro_uid.':业绩'.$yeji.','.$rule['name'].'代理;'.$order['user_id'].':业绩'.$buyer_yeji.$buyer_rule['name'].'代理';
+        //echo $remark;
         if($score > 0){
-            $rs_wallet = model('wallet')->lockChangeAccountRemain($intro_uid,'score',$score,6,$rule['name'].'代理','unishop_order',$order['id'],$order['user_id']);
+            $rs_wallet = model('wallet')->lockChangeAccountRemain($intro_uid,'score',$score,6,$remark,'unishop_order',$order['id'],$order['user_id']);
             if($rs_wallet['status'] === false){
                 echo $rs_wallet['msg'];
                 Db::rollback();