修改理由:

逻辑错误吧

详细描述:

当 credit card number 为 cc 时 payment type 不能为空。应当为:当 payment type 为 cc 时 credit card number不能为空。下面的一句同理。

相关信息:


此投稿已在 4年前 合并。

内容修改:

红色背景 为原始内容

绿色背景 为新增或者修改的内容

OldNewDifferences
497497
498498如果此验证规则失败,则会产生以下错误消息:
499499
500        当 credit card number 为 cc 时 payment type 不能为空。
 500       当payment type为cc时,credit card number 不能为空。
501501
502502您可以通过定义 `values` 数组,在 `validation` 语言文件中指定自定义值表示,而不是显示 `cc` 作为支付类型值:
503503
 
510510现在,如果验证规则失败,它将产生以下消息:
511511
512512       当 credit card number 为 信用卡 时 payment type 不能为空。
513 
 513       当payment type 为信用卡时,credit card number不能为空。
514514
515515
516516<a name="available-validation-rules"></a>