我改变了2到1个小时,就像那样
public function getActionTokenTimeout() {
if (($timeout = _elgg_services()->config->get('action_token_timeout')) === null) {
// default to 2 hours
$timeout = 1;
}
$hour = 60 * 60;
return (int)((float)$timeout * $hour);
}
但仍无法正常工作
答案 0 :(得分:0)
编辑这样的核心文件是一个坏主意,尤其是您已经公开了配置选项public class ImageCustomAdapter extends RecyclerView.Adapter<ImageCustomAdapter.ImagesViewHolder> {
Context context;
private ArrayList<ModelGettyImages> images;
private ArrayList<ModelGettyImages> allImages = new ArrayList<>();
public ImageCustomAdapter(ArrayList<ModelGettyImages> images,Context context) {
this.images = images;
this.context = context;
}
@Override
public ImagesViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.card_row, parent, false);
ImagesViewHolder imagesViewHolder = new ImagesViewHolder(view);
return imagesViewHolder;
}
@Override
public void onBindViewHolder(ImagesViewHolder holder, int position) {
List<String> text = images.get(position).getTitle();
Log.d("TitleAdapter : ",images.get(position).getTitle().toString());
List<String> image = images.get(position).getImagePath();
Log.d("ImageAdapter : ", images.get(position).getImagePath().toString());
holder.title.setText(text.get(position));
Picasso.with(context).load(image.get(position)).fit().centerCrop().into(holder.image);
}
@Override
public int getItemCount() {
return images.size();
}
public class ImagesViewHolder extends RecyclerView.ViewHolder{
ImageView image;
TextView title;
public ImagesViewHolder(View itemView) {
super(itemView);
image = (ImageView)itemView.findViewById(R.id.imageView);
title = (TextView)itemView.findViewById(R.id.textView);
}
}
}
来进行这种确切的更改。如果将它设置在代码中的其他位置,它将优先于您刚刚更改的默认值。检查action_token_timeout
或类似的设置。
进一步阅读你应该改变什么,不改变什么:{{3}}