Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑难] 【开心农场BUG修复进度及后续BUG收集】

[复制链接]
hotllus 发表于 2009-11-6 10:36:19 | 显示全部楼层
30# kufun

????????????????????????????????????
回复

使用道具 举报

hotllus 发表于 2009-11-6 10:55:14 | 显示全部楼层
本帖最后由 hotllus 于 2009-11-6 10:57 编辑

29# fbean

Have Problem Or Not??

  1. if ( $_REQUEST['mod'] == "Gift" && $_REQUEST['act'] == "getGift" )
  2. {
  3.                                                                 $message = $_SGLOBAL['db']->result( $_SGLOBAL['db']->query( "SELECT message FROM ".tname( "plug_newfarm" )." where uid=".intval( $_REQUEST['ownerId'] ) ), 0 );
  4.                                 $message = json_decode( $message );
  5.                                 foreach ( $message->e as $key => $value )
  6.                                 {
  7.                                                                 if ( $value->status == 2 )
  8.                                                                 {
  9.                                                                                                 if ( 3000 < $value->formulaId )
  10.                                                                                                 {
  11.                                                                                                                                 $type = 3;
  12.                                                                                                 }
  13.                                                                                                 else if ( 2000 < $value->formulaId && $value->formulaId < 3000 )
  14.                                                                                                 {
  15.                                                                                                                                 $type = 2;
  16.                                                                                                 }
  17.                                                                                                 else
  18.                                                                                                 {
  19.                                                                                                                                 $type = 1;
  20.                                                                                                 }
  21.                                                                                                 $result[] = """.$value->id."":{"id":".$value->id.","formulaId":".$value->formulaId.","type":".$type.","friendId":"".$value->friendId."","fName":"".$value->fName."","charm":".$value->charm.","msg":"".$value->msg."","show":1,"x":".$value->x.","y":".$value->y.","z":".$value->z."}";
  22.                                                                 }
  23.                                                                 if ( $value->status == 1 )
  24.                                                                 {
  25.                                                                                                 if ( 3000 < $value->formulaId )
  26.                                                                                                 {
  27.                                                                                                                                 $type = 3;
  28.                                                                                                 }
  29.                                                                                                 else if ( 2000 < $value->formulaId && $value->formulaId < 3000 )
  30.                                                                                                 {
  31.                                                                                                                                 $type = 2;
  32.                                                                                                 }
  33.                                                                                                 else
  34.                                                                                                 {
  35.                                                                                                                                 $type = 1;
  36.                                                                                                 }
  37.                                                                                                 $result[] = """.$value->id."":{"id":".$value->id.","formulaId":".$value->formulaId.","type":".$type.","friendId":"".$value->friendId."","fName":"".$value->fName."","charm":".$value->charm.","msg":"".$value->msg."","show":1,"x":0,"y":0,"z":0}";
  38.                                                                 }
  39.                                 }
  40.                                 $result = json_encode( $result );
  41.                                 $result = str_replace( "["", "", $result );
  42.                                 $result = str_replace( ""]", "", $result );
  43.                                 $result = str_replace( ","\\"", ",\\"", $result );
  44.                                 $result = str_replace( "\\u", "\\\\u", $result );
  45.                                 $result = str_replace( "}"", "}", $result );
  46.                                 $result = "{".$result."}";
  47.                                 echo stripslashes( str_ireplace( "{null}", "[]", $result ) );
  48.                                 exit( );
复制代码

  1. if ( $_REQUEST['mod'] == "Gift" && $_REQUEST['act'] == "deleteGift" )
  2. {
  3.                                 $message = $_SGLOBAL['db']->result( $_SGLOBAL['db']->query( "SELECT message FROM ".tname( "plug_newfarm" )." where uid=".$_SGLOBAL['supe_uid'] ), 0 );
  4.                                 $message = json_decode( $message );
  5.                                 foreach ( $message->e as $key => $value )
  6.                                 {
  7.                                                                 if ( $value->id == $_REQUEST['id'] )
  8.                                                                 {
  9.                                                                                                 //unset( $message->$this->e[$key] );
  10.                                                                                                 unset( $message->e[$key] );
  11.                                                                 }
  12.                                 }
  13.                                 $message = json_encode( $message );
  14.                                 $message = preg_replace( "'"[0-9]+":{'", "{", $message );
  15.                                 $message = str_ireplace( ""e":{{", ""e":[{", $message );
  16.                                 $message = str_ireplace( "}}}", "}]}", $message );
  17.                                 $message = str_replace( "\\u", "\\\\u", $message );
  18.                                 $_SGLOBAL['db']->query( "UPDATE ".tname( "plug_newfarm" )." set message='".$message."' where uid=".$_SGLOBAL['supe_uid'] );
  19.                                 echo "{"code":1}";
  20.                                 exit( );
  21. }
  22. if ( $_REQUEST['mod'] == "message" && $_REQUEST['act'] == "sendMessage" && $_REQUEST['type'] == "5" )
  23. {
  24.                                 $nosegay = $_SGLOBAL['db']->result( $_SGLOBAL['db']->query( "SELECT nosegay FROM ".tname( "plug_newfarm" )." where uid=".$_SGLOBAL['supe_uid'] ), 0 );
  25.                                 $nosegay = json_decode( $nosegay );
  26.                                 if ( $nosegay->$_REQUEST['id'] < 1 )
  27.                                 {
  28.                                                                 exit( );
  29.                                 }
  30.                                 $nosegay->$_REQUEST['id'] = $nosegay->$_REQUEST['id'] - 1;
  31.                                 $message = $_SGLOBAL['db']->result( $_SGLOBAL['db']->query( "SELECT message FROM ".tname( "plug_newfarm" )." where uid=".intval( $_REQUEST['toId'] ) ), 0 );
  32.                                 $message = json_decode( $message );
  33.                                 if ( empty( $space[name] ) )
  34.                                 {
  35.                                                                 $space[name] = $space[username];
  36.                                 }
  37.                                 $space[name] = unicode_encodegb( $space[name] );
  38.                                 $duixiang = "{"id":".$_SGLOBAL['timestamp'].","formulaId":".$_REQUEST['id'].","friendId":"".$_SGLOBAL['supe_uid']."","fName":"".$space[name]."","charm":".$makenosegay[$_REQUEST['id']][charm].","validTime":0,"msg":"".$_REQUEST['msg']."","sendTime":".$_SGLOBAL['timestamp'].","status":0,"x":50,"y":150,"z":3}";
  39.                                 $duixiang = json_decode( $duixiang );
  40.                                 $message->e[] = $duixiang;
  41.                                 $message = json_encode( $message );
  42.                                 $message = str_replace( "\\u", "\\\\u", $message );
  43.                                 $_SGLOBAL['db']->query( "UPDATE ".tname( "plug_newfarm" )." set message='".$message."' where uid=".intval( $_REQUEST['toId'] ) );
  44.                                 $nosegay = json_encode( $nosegay );
  45.                                 $_SGLOBAL['db']->query( "UPDATE ".tname( "plug_newfarm" )." set nosegay='".$nosegay."' where uid=".$_SGLOBAL['supe_uid'] );
  46.                                 echo "{"code":1,"type":5,"id":".$_REQUEST['id']."}";
  47.                                 include_once( S_ROOT."./source/function_cp.php" );
  48.                                 $icon = "farm";
  49.                                 $title_template = "{actor} 赠送给 {touser} 一个神秘的礼物。去 <a href="newfarm.php">精灵农场</a> 看看吧!";
  50.                                 $touserspace = getspace( intval( $_REQUEST['toId'] ) );
  51.                                 if ( empty( $touserspace[name] ) )
  52.                                 {
  53.                                                                 $touserspace[name] = $touserspace[username];
  54.                                 }
  55.                                 $title_data = array(
  56.                                                                 "touser" => "<a href="space.php?uid=".intval( $_REQUEST['toId'] )."">".$touserspace[name]."</a>"
  57.                                 );
  58.                                 $body_general = "什么时候还能收到礼物啊,呜呜呜~~~!";
  59.                                 feed_add( $icon, $title_template, $title_data, NULL, NULL, NULL );
  60.                                 exit( );
  61. }
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

EEonline 发表于 2009-11-6 11:01:40 | 显示全部楼层
LZ,我想单求 农场虫不显示BUG的解决办法~``非常感谢!!!
回复

使用道具 举报

青青小天 发表于 2009-11-6 11:12:36 | 显示全部楼层
在牧场买草后,动物消失的BUG修复没有
回复

使用道具 举报

heeguo 发表于 2009-11-6 11:25:26 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

heeguo 发表于 2009-11-6 11:25:42 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

sealei 发表于 2009-11-6 12:12:12 | 显示全部楼层
今天我有个会员也遇到了礼物消失的问题
感觉这个bug属于不可重现的
另外虫子不显示的问题一直存在
回复

使用道具 举报

iamxyh 发表于 2009-11-6 12:12:33 | 显示全部楼层
刷分BUG:
1.动物生产的时候,不停点击动物,会不断加经验值,产量也会翻倍。这个BUG在网速慢的时候出现。有个用户一下子生下1万多个蛋!
2.农场用杀虫剂点击作物,也不断加经验值。
回复

使用道具 举报

 楼主| fbean 发表于 2009-11-6 12:43:27 | 显示全部楼层
38# iamxyh


    第一个问题请详细描述一下呢
第二个问题在我提供的农场版本上没测试出BUG
回复

使用道具 举报

iamxyh 发表于 2009-11-7 00:05:41 | 显示全部楼层
第一个问题发生在动物要生产的时候,抓过去放下的同时狂点鼠标,这样造成反复加分,有些人用按键精灵点,经验值不停的涨。。。这是朋友提供的,网速较慢的时候可以出现。
第二个问题是用杀虫剂在随便一块有作物的地上点,可以出现。我本地测试发现了。
还有一个问题是变速齿轮可以加速作物生长,见:https://discuz.dismall.com/thread-1473694-1-2.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-21 21:59 , Processed in 0.659087 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表