提交 7e46d91f 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

implement task#7667

上级 a3e58aa1
package zentaoUtils
import (
"fmt"
constant "github.com/easysoft/zendata/src/utils/const"
"github.com/easysoft/zendata/src/utils/vari"
)
func GenApiUri(module string, methd string, param string) string {
var uri string
if vari.RequestType == constant.RequestTypePathInfo {
uri = fmt.Sprintf("%s-%s-%s.json", module, methd, param)
} else {
uri = fmt.Sprintf("index.php?m=%s&f=%s&%s&t=json", module, methd, param)
}
return uri
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册