MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / appendNormalParams

Function appendNormalParams

src/sync/WizKMServer.cpp:27–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27QString appendNormalParams(const QString& strUrl, const QString& token)
28{
29 QString url = strUrl;
30 if (-1 == url.indexOf("?"))
31 {
32 url += "?";
33 }
34 else
35 {
36 url += "&";
37 }
38 //
39 url += QString("clientType=macos&clientVersion=") + WIZ_CLIENT_VERSION + "&apiVersion=" + WizIntToStr(WIZKM_WEBAPI_VERSION);
40 //
41 if (!token.isEmpty())
42 {
43 url += "&token=" + token;
44 }
45 //
46 url = WizOfficialApiEntry::appendSrc(url);
47 //
48 return url;
49}
50
51/*
52 * no result

Callers 2

buildUrlMethod · 0.85

Calls 3

WizIntToStrFunction · 0.85
isEmptyMethod · 0.80
QStringClass · 0.70

Tested by

no test coverage detected