{"size": 441, "ext": "js", "max_stars_repo_path": "server/app/service/verify.js", "max_stars_repo_name": "jj-apm/schoolLostingThing", "max_stars_repo_stars_event_min_datetime": "2020-04-08T14:38:36.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-21T02:58:00.000Z", "max_issues_repo_path": "server/app/service/verify.js", "max_issues_repo_name": "jj-apm/schoolLostingThing", "max_issues_repo_issues_event_min_datetime": "2021-03-10T14:03:30.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T02:33:03.000Z", "max_forks_repo_path": "server/app/service/verify.js", "max_forks_repo_name": "jj-apm/schoolLostingThing", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 6, "max_issues_count": 8, "max_forks_count": null, "avg_line_length": 22.05, "max_line_length": 40, "alphanum_fraction": 0.6213151927}
'use strict';
/**验证码管理service层
 * @param verifyService
 */
const Service=require('egg').Service;
const svgCaptcha=require('svg-captcha');
class VerifyService extends Service{
    //生成并返回验证码service
    async captcha(){
      const captcha=svgCaptcha.create({
          size:4,
          fontSize:50,
          width:100,
          height:40,
          background:'#cc9966'
      });
      return captcha;
    }
}
module.exports=VerifyService;