我尝试在Windows Server 2012上配置Laravel 5.2并在执行时遇到错误:
private void parseData(JSONArray array) {
//TODO make an instance listSuperHeroes
adapter = new CardAdapter(listSuperHeroes, context);
recyclerView.setAdapter(adapter);
for (int i = 0; i < array.length(); i++) {
Restaurant_Beam superHero = new Restaurant_Beam();
JSONObject json = null;
try {
json = array.getJSONObject(i);
superHero.setStr_categoryName(json.getString(Config.CATEGORY_NAME));
superHero.setStr_productName(json.getString(Config.PRODUCT_NAME));
superHero.setStrPrice(json.getInt(String.valueOf(Config.PRICE)));
superHero.setImageUrl(json.getString(Config.TAG_IMAGE_URL));
superHero.setTAB_NAME(json.getString(Config.TAB_NAME));
superHero.setLikeCount(json.getInt(Config.LIKE_COUNT));
superHero.setCommentCount(json.getInt(Config.COMMENT_COUNT));
superHero.setProduct_id(json.getString(Config.PRODUCT_ID));
String productId = json.getString(Config.LIKE_COUNT);
product_Id.add(productId);
} catch (JSONException e) {
e.printStackTrace();
}
if (superHero.getTAB_NAME().contains(currentTab)) {
listSuperHeroes.add(superHero);
adapter.notifyDatasetChanged();
}
}
在这里输入代码php artisan clear-compiled
[ErrorException]
未定义的索引:REQUEST_METHOD
脚本php artisan clear-compiled处理返回错误的pre-update-cmd事件 [RuntimeException的]错误输出:
更新[--prefer-source] [--prefer-dist] [ - dr-run] [ - dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-autoloader] [ - no-scripts] [ - no- progress] [--with-dependencies] [-v | vv | vvv | --verbose] [-o | --optimize-autoloader] [-a | --classmap-authoritative] [--ignore-platform-reqs] [--prefer-stable] [--pre fer-lowest] [-i | --interactive] [--root-reqs] [ - ] [] ....
我还尝试了其他以下的工匠命令,并且他们都给出了相同的错误。
composer update
错误
[ErrorException]未定义的索引:REQUEST_METHOD