浏览代码

debug friends

stanley-king 6 年之前
父节点
当前提交
f0b4e97fa7
共有 4 个文件被更改,包括 6 次插入6 次删除
  1. 二进制
      data/resource/mobile/bonus/shareimg/bonus.png
  2. 1 3
      helper/url_helper.php
  3. 1 1
      mobile/control/game.php
  4. 4 2
      test/TestRoomFactory.php

二进制
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,'我是你叔叔');
     }
 }