fangxu / safety-inspection
donews safety inspection
v1.3
2018-10-08 07:48 UTC
Requires
- nfangxu/aliyuncs-green: ^1.0
This package is auto-updated.
Last update: 2025-03-01 00:19:06 UTC
README
example:
Route::get("/inspection", function (Fangxu\SafetyInspection\SafetyInspection $inspection) {
$inspection->text("新年快乐", function ($result) {
if ($result->suggestion != "pass") {
throw new \Exception("内容中含有不合法的字段", "405");
}
});
});