日志怎么还是为空呢?
白社区 发表于 2009-11-1 16:24 - {"l":[{"time":1257068601,"msg":"<b>\\\u98d8\\\u96e8\\\u660e\\\u5929<\\\/b>\\\u6765\\\u519C\\\u573A\\\u6458\\\u53D6\\\uFF0C\\\u6458\\\u8D701\\\u4E2A\\\u83E0\\\u841D"}]}
复制代码 进数据库看到的是这个,原来的farm_log字段的显示方式应该是- {"l":[{"time":1257068601,"msg":"<b>\u98d8\u96e8\u660e\u5929</b>\u6765\u519C\u573A\u6458\u53D6\uFF0C\u6458\u8D701\u4E2A\u83E0\u841D"}]}
复制代码 而作者的补丁里有这样两段代码- $log_msg=$log_msg."\\u3002";
- $farm_log->l[] = "{"time":".$_SGLOBAL['timestamp'].","msg":"".$log_msg.""}";
- $farm_log = json_encode( $farm_log );
- $farm_log = str_replace( ""{", "{", $farm_log );
- $farm_log = str_replace( "}"", "}", $farm_log );
- $farm_log = str_replace( "\\u", "\\\\u", $farm_log );
- $_SGLOBAL['db']->query( "UPDATE ".tname( "plug_newfarm" )." set log='".$farm_log."' where uid=".intval( $_SGLOBAL['supe_uid'] ) );
复制代码 所以还是问原作者吧.....或者直接改回farm_log字段得了.就是查找所有的改回为 |