Why can't I alert the pop-up window if my custom verification failure prompt message is in Chinese, but can only be displayed in English and numbers?
之贰
之贰 2018-11-20 14:41:03
0
0
744
public function checkLogin(Request $request)
{
//Initialization return parameters
$status = 0;
$result = '';
$data = $request -> param( );

//Create verification rules
$rule = [
'name|Username' => 'require', //Username is required
'password|Password' => 'require',
'verify|Verification code' => 'require|captcha',
];

//Customized verification failure prompt message
$msg = [
                                                                                                                                                                                                                                                                                                    [ > ['require' => '33'],
];

//Verify
$result = $this->validate($data,$rule,$msg );

return ['status'=> $status,'message'=>$result,'data'=>$data];

}

之贰
之贰

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template