diff --git a/includes/api/ram-rest-comments-controller.php b/includes/api/ram-rest-comments-controller.php index 5b9224ab9f308d93831452a23e3f3818e4ea7bc2..8bcafb86e51736cb29e84ace1110802e0b190f43 100644 --- a/includes/api/ram-rest-comments-controller.php +++ b/includes/api/ram-rest-comments-controller.php @@ -393,6 +393,12 @@ class RAM_REST_Comments_Controller extends WP_REST_Controller{ } } + + // if(!empty($formId) && strlen($formId>50)) + // { + // return new WP_Error( 'error', 'fromId参数错误', array( 'status' => 500 ) ); + // } + if(!username_exists($openid)) { return new WP_Error( 'error', '不允许提交', array('status' => 500 )); diff --git a/rest-api-to-miniprogram.php b/rest-api-to-miniprogram.php index 3d2c452009f7ae46e61970aa048c68fda2178762..0ec4253458e512d8623c99458cd085ae609f10fa 100644 --- a/rest-api-to-miniprogram.php +++ b/rest-api-to-miniprogram.php @@ -1,9 +1,9 @@ -