| 123456789101112131415161718192021222324252627282930 | <?php/** * GiftValidate.php UTF-8 * 礼包验证类 * * @date    : 2017/11/18 16:16 * * @license 这不是一个自由软件,未经授权不许任何使用和传播。 * @author  : wuyonghong <wyh@huosdk.com> * @version : HUOSDK 8.0 */namespace api\wapapp\validate;class GiftValidate extends BaseValidate {    protected $scene        = [            'list'   => ['sign', 'timestamp'],            'detail' => ['giftid', 'sign', 'timestamp'],        ];    public function __construct(array $rules = [], array $message = [], array $field = []) {        $rules = [            'giftid' => 'require',        ];        $message = [            'giftid.require' => lang('gift id is null'),        ];        parent::__construct($rules, $message, $field);    }}
 |