Sfoglia il codice sorgente

balance pd and bonus

stanley-king 8 anni fa
parent
commit
b3e7d645f1
3 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 1 1
      helper/bonus/witholder.php
  2. 1 1
      helper/bonus_helper.php
  3. 1 1
      test/bonus_helperTest.php

+ 1 - 1
helper/bonus/witholder.php

@@ -55,7 +55,7 @@ class witholder
         return false;
     }
 
-    public function withhold($money)
+    public function withold($money)
     {
         $left = intval($money * 100 + 0.5);
         if($left <= 0) {

+ 1 - 1
helper/bonus_helper.php

@@ -231,7 +231,7 @@ class bonus_helper
     static public function withold($member_id,$money)
     {
         $holder = new \bonus\witholder($member_id);
-        return $holder->withhold($money);
+        return $holder->withold($money);
     }
 
     static public function withold_bonus($member_id,$bonus_sn)

+ 1 - 1
test/bonus_helperTest.php

@@ -31,7 +31,7 @@ class bonus_helperTest extends PHPUnit_Framework_TestCase
     public function testMemBonus()
     {
         $mem_bonus = new \bonus\witholder(36490);
-        $mem_bonus->withhold(7.30);
+        $mem_bonus->withold(7.30);
     }
 
     public static function tearDownAfterClass()