幽灵狗有问题
1youcheng 发表于 2009-11-2 19:35
打开根目录\newfarm.php
找到- $dog = "{"1":{"id":8888,"dogValidTime":1,"status":0,"dogFeedTime":0},"2":{"id":8889,"dogValidTime":0,"status":0,"dogFeedTime":0},"3":{"id":8890,"dogValidTime":0,"status":0,"dogFeedTime":0},"4":{"id":8891,"dogValidTime":0,"status":0,"dogFeedTime":0},"5":{"id":8892,"dogValidTime":0,"status":0,"dogFeedTime":0},"6":{"id":8893,"dogValidTime":0,"status":0,"dogFeedTime":0},"7":{"id":8894,"dogValidTime":0,"status":0,"dogFeedTime":0}}";
复制代码 在最后面的:加上:- ,"8":{"id":8895,"dogValidTime":0,"status":0,"dogFeedTime":0}
复制代码 记得后面格式为}"; 贴错会初始化失败
找到:- "1" => array( "price" => "0", "FBPrice" => "1", "gouliang" => "10" )
复制代码 替换为:- "1" => array( "price" => "0", "FBPrice" => "35", "gouliang" => "10" )
复制代码 (第一次导入干净的sql不需要看下面,只需作上面的就行了)
再来打开你的资料表: uchome_plug_newfarm
找到dog栏位将内容清空
贴上- {"1":{"id":8888,"dogValidTime":1,"status":0,"dogFeedTime":0},"2":{"id":8889,"dogValidTime":0,"status":0,"dogFeedTime":0},"3":{"id":8890,"dogValidTime":0,"status":0,"dogFeedTime":0},"4":{"id":8891,"dogValidTime":0,"status":0,"dogFeedTime":0},"5":{"id":8892,"dogValidTime":0,"status":0,"dogFeedTime":0},"6":{"id":8893,"dogValidTime":0,"status":0,"dogFeedTime":0},"7":{"id":8894,"dogValidTime":0,"status":0,"dogFeedTime":0},"8":{"id":8895,"dogValidTime":0,"status":0,"dogFeedTime":0}}
复制代码 问题解决! |