Explorar o código

debug friends

stanley-king %!s(int64=6) %!d(string=hai) anos
pai
achega
f0b4e97fa7

BIN=BIN
data/resource/mobile/bonus/shareimg/bonus.png


+ 1 - 3
helper/url_helper.php

@@ -29,9 +29,7 @@ class url_helper
     public static function bonus_open_path($type_sn)
     {
         $relay_id = session_helper::share_id();
-        $url = BASE_SITE_URL . "/mobile/index.php?act=bonusex&op=open&client_type=wap&type_sn={$type_sn}&relay_id={$relay_id}";
-        $url = urlencode($url);
-        $path = "pages/shareBonus/shareBonus?url={$url}";
+        $path = "pages/shareBonus/shareBonus?type_sn={$type_sn}&relay_id={$relay_id}";
         return $path;
     }
 

+ 1 - 1
mobile/control/game.php

@@ -38,7 +38,7 @@ class gameControl extends mbMemberControl
             $result['user'] = $userid;
         }
 
-        return self::outsuccess($result);
+        return self::outsuccess($result,"game/shake_bonus");
     }
 
     public function test_shakeOp()

+ 4 - 2
test/TestRoomFactory.php

@@ -151,10 +151,12 @@ class TestRoomFactory extends PHPUnit_Framework_TestCase
 
     public function testNotifyCommand()
     {
-        room\pusher::instance()->new_friend(39623,36505);
+//        room\pusher::instance()->new_friend(39623,36505);
+        room\pusher::instance()->new_friend(39674,39623);
     }
     public function testApplyFriend()
     {
-        room\pusher::instance()->apply_friend(39623,39668,'我是你叔叔');
+        room\pusher::instance()->apply_friend(39689,39623,'我是你叔叔');
+        room\pusher::instance()->apply_friend(39689,39674,'我是你叔叔');
     }
 }