- foreach ( $pieces as $key => $value )
- {
- $id = $pieces[$key];
- $f = $farm->farmlandstatus[$id]->f;
- $u = $farm->farmlandstatus[$id]->u;
- if ( $f > 0 ){
- if ($u == $UID) {
- echo '{"farmlandIndex":'.$id.',"code":0,"direction":"\u8BC1\u636E\u662F\u4E0D\u80FD\u6BC1\u706D\u7684\uFF01","poptype":1,"weed":'.$f.'}';
- }else{
- $f -= 1;
- $money += 2;
- $exp += 2;
- $echo_str[] = json_decode("{"farmlandIndex":".$id.","code":1,"poptype":1,"direction":"".$Tips_weed_b[setting1]."","money":2,"exp":2,"levelUp":false,"weed":".$f."}");
- }
- }
- $farm->farmlandstatus[$id]->f = $f;
- }
复制代码
$farm_Status->farmlandstatus[$id]->u = $_SGLOBAL['supe_uid']; |