Browse Source

sunguidong

zhangguidong 2 years ago
parent
commit
e94f21a9be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Notify.php

+ 2 - 2
application/api/controller/Notify.php

@@ -123,7 +123,7 @@ class Notify extends Api
                         'desc'=>'回收月结支付',
                         'create_time'=>time()
                     ];
-                    $score = intval(100*$pre);
+                    $score = intval($order['service_money']*$pre);
                     file_put_contents('score.log', $score);
 
                     $score_num = $use_score['score']+$score;
@@ -189,7 +189,7 @@ class Notify extends Api
                         'desc'=>'餐具配送月结支付',
                         'create_time'=>time()
                     ];
-                    $score = intval(100*$pre);
+                    $score = intval($order['amount_money']*$pre);
                     $score_num = $use_score['score']+$score;
                     $user_collont = new Userscore();
                     $user_collont->insert([