|
|
@@ -352,7 +352,7 @@ func (w *WFClient) FetchDoneList(page, rows int) ([]byte, error) {
|
|
|
|
|
|
func (w *WFClient) FetchWFINstances(page, rows int, filters, sidx, sord string) ([]byte, error) {
|
|
|
url := w.getFullUrl("/api/wf_instance/list")
|
|
|
-
|
|
|
+ fmt.Println("wf url: ", url)
|
|
|
params := make(map[string]string)
|
|
|
params["page"] = strconv.FormatInt(int64(page), 10)
|
|
|
params["rows"] = strconv.FormatInt(int64(rows), 10)
|
|
|
@@ -368,7 +368,8 @@ func (w *WFClient) FetchWFINstances(page, rows int, filters, sidx, sord string)
|
|
|
* @param1 r: http req
|
|
|
*/
|
|
|
func (w *WFClient) wfReqInterseptor(r *http.Request) {
|
|
|
- r.Header.Add("Authorization", w.authorization)
|
|
|
+ //r.Header.Add("Authorization", w.authorization)
|
|
|
+ fmt.Println("header add token", w.token)
|
|
|
r.Header.Add("token", w.token)
|
|
|
}
|
|
|
|