1
This commit is contained in:
@@ -6,7 +6,6 @@ import (
|
||||
"fmt"
|
||||
"runtime/debug"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
)
|
||||
|
||||
@@ -60,7 +59,6 @@ func callHandler(handler func()) (retVal interface{}) {
|
||||
func taskFun(taskChan chan *TaskParam, index int) {
|
||||
for {
|
||||
taskParam := <-taskChan
|
||||
baseapi.SugarLogger.Debugf("routine:%d, handle task:%v", index, taskParam.handler)
|
||||
result := callHandler(taskParam.handler)
|
||||
if taskParam.resultChan != nil {
|
||||
taskParam.resultChan <- result
|
||||
|
||||
@@ -4,8 +4,6 @@ import (
|
||||
"bytes"
|
||||
"crypto/aes"
|
||||
"crypto/cipher"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
)
|
||||
|
||||
func AESCBCEncpryt(data, aesKey, iv []byte) (encryptedData []byte, err error) {
|
||||
@@ -36,7 +34,6 @@ func PKCSUnPadding(originData []byte) []byte {
|
||||
length := len(originData)
|
||||
unpadding := int(originData[length-1])
|
||||
originData = originData[:(length - unpadding)]
|
||||
baseapi.SugarLogger.Debugf("PKCSUnPadding, length:%d, unpadding:%d", length, unpadding)
|
||||
return originData
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user