提交 c553e039 authored 作者: 吴强's avatar 吴强

本地测试使用

上级 93576a8e
......@@ -25,10 +25,10 @@ const resource_proxy = {
const V4_proxy = {
//"http://106.ihuyi.cn/webservice/sms.php?method=Submit
"target": "http://222.73.234.155",
"target": "http://101.227.181.123",
"changeOrigin": true,
"headers":{
"host":"222.73.234.155"
"host":"101.227.181.123"
},
"pathRewrite": {
"^/V4": "/WPF/JTWebApiService/V4"
......
import { routerRedux } from 'dva/router';
import {getToken, setToken} from "../utils/auth";
import {login} from '../services/login.js'
const fetchToken = async (url) => {
return fetch(`V4/GetWXUserInfo/${url}`,{
method: 'GET',
......@@ -32,7 +32,18 @@ export default {
const { telnum } = yield select(state => state.login);
console.info(`输出获取的参数${telnum}`);
console.info(`输出获取的参数${url}`);
let tokenId = yield call(fetchToken, url);
const pay={
type: 'userName',
userName: 'admin',
authType: 'password',
password: 'admin'
};
let mm= yield login(pay);
console.info(`打印结果为:${mm.tokenId}`);
console.info(mm);
// let tokenId = yield call(fetchToken, url);
let tokenId=mm.tokenId;
//tokenId=yield call(getUserFromV4,{},{},false);
if(tokenId!==null&&tokenId!==""&&tokenId!=='无内容'&&tokenId!=='用户未注册')
{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论