Explorar o código

wip:提交测试修改

wangkaiyue hai 1 ano
pai
achega
20d2e8d3f0
Modificáronse 2 ficheiros con 1 adicións e 8 borrados
  1. 0 5
      internal/service/invoiceCallback.go
  2. 1 3
      internal/service/invoiceManager.go

+ 0 - 5
internal/service/invoiceCallback.go

@@ -17,11 +17,6 @@ func InvoicingCallBackLogic(r *ghttp.Request) error {
 	tType := r.Get("type").Int() //type [0 需要活体检测;1 成功 返回base64]
 	switch tType {
 	case 0: //需要活体检测
-		//imgVal, err := url.QueryUnescape(r.Get("img").String())
-		//if err != nil {
-		//	return gerror.Wrap(err, "活体检测二维码解析失败")
-		//}
-		JyInvoiceManager.OCRPass = false
 		if err := util.SendQrImage2ChatBot(r.Get("img").String()); err != nil {
 			return gerror.Wrap(err, "发送活体检测消息出错")
 		}

+ 1 - 3
internal/service/invoiceManager.go

@@ -21,7 +21,6 @@ type InvoiceManager struct {
 	jobRunning  bool        //开票是否运行中
 	StopRunning bool        //财务占用账号,需要暂停任务
 	Login       bool        //登录状态
-	OCRPass     bool        //活体检测状态是否通过
 	runPool     chan bool   //任务(每次只能进行一个开票任务)
 	phoneCode   chan string //短信验证码池
 	ScanLogin   chan bool   //扫码登录
@@ -42,8 +41,7 @@ func init() {
 func createInvoiceManager() *InvoiceManager {
 	return &InvoiceManager{
 		Auth:      createTripartite(),
-		Login:     true, //默认已经登录
-		OCRPass:   true,
+		Login:     true,                 //默认已经登录
 		runPool:   make(chan bool, 1),   //开票只能单线程跑
 		phoneCode: make(chan string, 1), //手机验证码
 		ScanLogin: make(chan bool, 1),   //扫码登录通知