5 Commits

Author SHA1 Message Date
NotFlyLoongQaQ
f8274128a7 Merge 428eaa3ff9 into 61befb96e8 2025-03-16 23:47:11 +08:00
github-actions[bot]
61befb96e8 [ci skip] Automatic file changes/fix 2025-03-15 07:17:14 +00:00
Anduin Xue
21a908ad09 Delete dishes/aquatic/芥末黄油罗氏虾.md Fix #1418 2025-03-15 07:16:44 +00:00
Anduin Xue
428eaa3ff9 Merge branch 'master' into patch-2 2023-01-10 09:38:27 +00:00
NotFlyLoongQaQ
4fb31ed063 创建评分系统 2023-01-06 21:06:29 +08:00
4 changed files with 117 additions and 53 deletions

View File

@@ -207,7 +207,6 @@ docker run -d -p 5000:5000 ghcr.io/anduin2017/how-to-cook:latest
- [黄油煎虾](dishes/aquatic/黄油煎虾/黄油煎虾.md)
- [烤鱼](dishes/aquatic/混合烤鱼/烤鱼.md)
- [芥末黄油罗氏虾](dishes/aquatic/芥末黄油罗氏虾/芥末黄油罗氏虾.md)
- [芥末黄油罗氏虾](dishes/aquatic/芥末黄油罗氏虾.md)
- [咖喱炒蟹](dishes/aquatic/咖喱炒蟹.md)
- [鲤鱼炖白菜](dishes/aquatic/鲤鱼炖白菜/鲤鱼炖白菜.md)
- [清蒸鲈鱼](dishes/aquatic/清蒸鲈鱼/清蒸鲈鱼.md)

117
background/score.php Normal file
View File

@@ -0,0 +1,117 @@
<?php
/*
* 你可能会认为你读得懂以下的代码。但是你不会懂的,相信我吧。
* 要是你尝试玩弄这段代码的话,你将会在无尽的通宵中不断地咒骂自己为什么会认为自己聪明到可以优化这段代码。
* 现在请关闭这个文件去玩点别的吧!
* ░░░░░░░░░░░░░░░░░░░░░░░░▄░░
* ░░░░░░░░░▐█░░░░░░░░░░░▄▀▒▌░
* ░░░░░░░░▐▀▒█░░░░░░░░▄▀▒▒▒▐
* ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
* ░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
* ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌
* ░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒
* ░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
* ░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄
* ░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒
* ▀▒▀▐▄█▄█▌▄░▀▒▒░░░░░░░░░░▒▒▒
* 单身狗就这样默默地看着你,一句话也不说
*/
$name = $_GET["cname"];
$score = $_GET["score"];
if($score != "good" && $score != "bad"){
echo "[\"code=1\",\"return=error\",\"errormsg=Illegal entry\"]";
exit;
}
else{
if($score == "good){
if(!file_exists($CounterFile)){
$counter = 0;
$cf = fopen($CounterFile,"w");
fputs($cf,'0');
fclose($cf);
}
else{
$cf = fopen($CounterFile,"r");
$counter = trim(fgets($cf,$max_len));
fclose($cf);
}
$counter++;
$cf = fopen($CounterFile,"w");//覆盖写新数据
fputs($cf,$counter);
fclose($cf);
} else{
if(!file_exists($CounterFile)){
$counter = 0;
$cf = fopen($CounterFile,"w");
fputs($cf,'0');
fclose($cf);
}
else{
$cf = fopen($CounterFile,"r");
$counter = trim(fgets($cf,$max_len));
fclose($cf);
}
$counter = counter - 1;
$cf = fopen($CounterFile,"w");
fputs($cf,$counter);
fclose($cf);
}
echo "现在的评分是:".$counter;

View File

@@ -1,51 +0,0 @@
# 芥末黄油罗氏虾的做法
这是一道做法简单,味道美味,具有新意的海鲜菜。
预估烹饪难度:★★★
## 必备原料和工具
* 罗氏虾
* 黄油
* 芥末
* 白糖
* 生抽
* 蚝油
*
* 料酒、朗姆酒或啤酒
* 香菜
*
## 计算
按照 1 盘的份量:
* 罗氏虾 1 斤多 广东市场价大概 40~45 一斤
* 黄油 约 20g
* 芥末 15g
* 白糖 3g
* 生抽 30g
* 蚝油 30g
* 盐 3g
* 料酒、朗姆酒或啤酒 15g 到 30g
* 香菜 5 条 切段
* 蒜 5 颗 剁成蒜蓉
## 操作
* 将罗氏虾剪掉头尾尖刺、触须和脚,剪刀把虾身开背,去除虾线。
* 提前搅拌好芥末酱汁:酱油、蚝油、芥末、盐、糖,搅拌均匀!
* 洗好香菜,切段备用。
* 罗氏虾沥掉水,锅中加入油,直接放入罗氏虾,中火,外表煎至金黄,捞出。
* 下入蒜蓉,大火,利用煎虾剩下的油继续煎炒蒜蓉,等到锅中白雾冒出,蒜蓉已经煎出香味,下虾和黄油,让虾充分吸收黄油香味
* 下入调好的酱汁,继续大火煮沸,翻炒虾,至酱汁收汁,加入酒(料酒、啤酒可以放 30g朗姆酒味道浓郁放 15g 即可。)
* 在等酱汁稍微收汁,加入香菜翻炒两下,即可出锅。
## 附加内容
* 酱汁提前调配好,黄油提前备好,防止中间备料耗时。
* 蒜蓉切记要等虾煎好后捞出再下,防止煎炒过久变黑,发苦。
* 如果不太能接受芥末就放少点,能接受就放多点,如果放多了,煮久一会儿,芥末味也会散去。
如果您遵循本指南的制作流程而发现有问题或可以改进的流程,请提出 Issue 或 Pull request 。

View File

@@ -5,7 +5,6 @@
* [清蒸生蚝](./../dishes/aquatic/清蒸生蚝.md)
* [清蒸鲈鱼](./../dishes/aquatic/清蒸鲈鱼/清蒸鲈鱼.md)
* [芥末黄油罗氏虾](./../dishes/aquatic/芥末黄油罗氏虾/芥末黄油罗氏虾.md)
* [芥末黄油罗氏虾](./../dishes/aquatic/芥末黄油罗氏虾.md)
* [葱烧海参](./../dishes/aquatic/葱烧海参/葱烧海参.md)
* [蛏抱蛋](./../dishes/aquatic/蛏抱蛋/蛏抱蛋.md)
* [鲤鱼炖白菜](./../dishes/aquatic/鲤鱼炖白菜/鲤鱼炖白菜.md)