提交5次或更多次后,请禁用提交按钮

时间:2017-04-11 12:57:15

标签: php

我想每天提交表单只会提交5个用户可以点击,每天点击5次后按钮消失并会显示文字。然后第二天按钮将显示,直到用户再次点击5次。

这是我的php:

Object.values

这是我的HTML表单代码

Observable<Restaurant> orderRestaurant= IdentityClient.getAPIService()
        .getRestaurantById(restaurantId)
        .subscribeOn(Schedulers.newThread())
        .observeOn(AndroidSchedulers.mainThread());

    Observable<Menu> orderMenu= IdentityClient.getAPIService()
        .getMenuById(menuId)
        .subscribeOn(Schedulers.newThread())
        .observeOn(AndroidSchedulers.mainThread());

    Observable<User> orderUser= IdentityClient.getAPIService()
        .getUserById(userId)
        .subscribeOn(Schedulers.newThread())
        .observeOn(AndroidSchedulers.mainThread());

    Observable<OrderValues> combineValues=Observable.zip(orderRestaurant, 
    orderMenu, orderUser,
       new Function3<Restaurant, Menu, User, OrderValues>() {
   @Override
   public OrderValues apply(Restaurant restaurant, Menu menu, User user) 
    throws Exception {
       return new OrderValues(restaurant,menu,user);
   }
I get an error here "cannot resolve method 'subscribe anonymous 
org.reactivestreams.Subscriber(....OrderValues)
   }).subscribe(new Subscriber<OrderValues>() {
   @Override
   public void onSubscribe(Subscription s) {

   }

   @Override
   public void onNext(OrderValues orderValues) {

   }

   @Override
   public void onError(Throwable t) {

   }

   @Override
   public void onComplete() {

   }
   });

0 个答案:

没有答案