4.6.201909201814 • Published 5 years ago

@dfeidao/fd-an000084 v4.6.201909201814

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

检测验证码是否正确

Installation

yarn add --dev @dfeidao/fd-an000084

Requires

使用本原子操作需要在feidao.json中routers下加入

{
		"URL": "/`@pathname`",
		"METHOD": "get",
		"SERVICE": "dataservice.nodejs",
		"DATA": {
			"modelid": "`@path`"
		}
}

@pathname为url访问地址,@path为服务路径

Example

// 服务中
import check from '@dfeidao/fd-an000084';
interface Message {
		query: {
			captcha: string
		},
		cookie: {
			uk: string
		}
}
return check(msg.cookie, msg.query.captcha);