|
|
@@ -666,7 +666,8 @@ export class TaskService implements OnModuleInit {
|
|
|
cloud033: 0,
|
|
|
cloud034: 0,
|
|
|
cloud037: 0,
|
|
|
- xyz: 0
|
|
|
+ xyz: 0,
|
|
|
+ cowboy: 0
|
|
|
}
|
|
|
const cloudInstance = axios.create({
|
|
|
baseURL: 'http://52.77.17.214:9001/api/'
|
|
|
@@ -697,6 +698,28 @@ export class TaskService implements OnModuleInit {
|
|
|
} catch (e) {
|
|
|
}
|
|
|
})(),
|
|
|
+ (async () => {
|
|
|
+ try {
|
|
|
+ const cowboyRes = await axios
|
|
|
+ .create({
|
|
|
+ baseURL: 'http://8.218.211.187/',
|
|
|
+ headers: {
|
|
|
+ uhost: 'api.cowboymsg.com',
|
|
|
+ uprotocol: 'http'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .get('getUserInfo', {
|
|
|
+ params: {
|
|
|
+ name: 'launch',
|
|
|
+ ApiKey: 'NUdVcVMxelBQTXlpcTBwbk1XQUhzQT09'
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (cowboyRes.data.code === 200) {
|
|
|
+ res.cowboy = cowboyRes.data.data.score
|
|
|
+ }
|
|
|
+ } catch (e) {
|
|
|
+ }
|
|
|
+ })(),
|
|
|
(async () => {
|
|
|
try {
|
|
|
const xyz = await xyzInstance.get('v1', {
|