Merge remote-tracking branch 'origin/master'

This commit is contained in:
mkm 2023-01-31 14:48:58 +08:00
commit c278ef711f

View File

@ -1197,11 +1197,11 @@ class Maintainentry extends BaseController
public function newEntry()
{
$post = get_params();
try {
validate('Maintainentry.add')->check($post);
} catch (\Exception $e) {
$this->apiError($e->getMessage());
}
// try {
// validate('Maintainentry.add')->check($post);
// } catch (\Exception $e) {
// $this->apiError($e->getMessage());
// }
if ($post) {
Db::startTrans();
@ -1487,11 +1487,11 @@ class Maintainentry extends BaseController
public function userEntry()
{
$post = get_params();
try {
validate('Maintainentry.myadd')->check($post);
} catch (\Exception $e) {
$this->apiError($e->getMessage());
}
// try {
// validate('Maintainentry.myadd')->check($post);
// } catch (\Exception $e) {
// $this->apiError($e->getMessage());
// }
if ($post) {
//// 验证验证码