col_prefix.'store_id']; $outer_store_id = $row[$this->col_prefix.'outer_store_id']; $sync = $row[$this->col_prefix.'sync']; $button = '编辑'; if(!$outer_store_id && ($sync ==1 || $sync ==2)){ $button .= " | ".sprintf('同步', $store_id,$finder_id); }elseif($outer_store_id && ($sync ==1 || $sync ==2)){ $button .= " | ".sprintf('更新', $store_id,$finder_id); }elseif($outer_store_id && $sync == 3){ $button .= " | ".sprintf('删除', $store_id,$finder_id); } return $button; } }