浏览代码

干完活输出结果个数

visuddhinanda 5 年之前
父节点
当前提交
479d6e3b4c
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      app/dict/redis_pm_part.php
  2. 1 1
      app/dict/redis_ref_with_mean.php
  3. 1 1
      app/dict/redis_sys_rgl_part.php

+ 1 - 1
app/dict/redis_pm_part.php

@@ -16,7 +16,7 @@ if (PHP_SAPI == "cli") {
 			}
 		}
 	}
-	echo "all done";
+	echo "all done ".$redis->hLen("dict://pm/part");
 }
 
 ?>

+ 1 - 1
app/dict/redis_ref_with_mean.php

@@ -16,7 +16,7 @@ if (PHP_SAPI == "cli") {
 			$redis->hSet("dict://ref/has_mean",$row["word"],"1");
 		}
 	}
-	echo "all done";
+	echo "all done ".$redis->hLen("dict://ref/has_mean");
 }
 
 ?>

+ 1 - 1
app/dict/redis_sys_rgl_part.php

@@ -15,7 +15,7 @@ if (PHP_SAPI == "cli") {
 			$redis->hSet("dict://regular/part",$row["pali"],$row["parts"]);
 		}
 	}
-	echo "all done";
+	echo "all done ".$redis->hLen("dict://regular/part");
 }
 
 ?>