4.0.23 • Published 2 months ago

tplus-api v4.0.23

Weekly downloads
171
License
ISC
Repository
-
Last release
2 months ago

tplusApi -> T+前端网关库

模块说明

  • 云账号登录/注销
  • 注销拦截器
  • 阿里云webtrace日志上报

编写说明

  • 使用typescript

依赖模块

  • mutants-microfx
  • mutants-jsbridge
  • mutants-log

登录 + 注销 + 拦截器 + 请求 + 阿里云日志(代码示例)

const login = async ()=>{
      registerLogoutMiddleWare('loginOut',()=>{
        console.log('注销后...');
      });
      //用户认证 获取企业列表
      const user:User = await User.authentication('${username}','${password}');
      //过滤企业
      let tcOrgs:Array<any> = _filter(user.orgList,org=>org.orgFullName === '${orgName}');
      if(tcOrgs.length > 0){
       const tcOrgId:string = tcOrgs[0].orgId;
       //初始化通道
       await user.initChannel(tcOrgId);
       //登录T+
       await user.loginTplus({});
       console.log('user.logined======',user);
       const response = await tApi({},'${methodName}',false,false);
       console.log('response======',response);
       //用户注销
       User.logout();
       try{
        const response1 = await tApi({},'${methodName}',false,false);
        console.log('logout.response======',response1);
       }catch(e){
        //将API错误日志进行上报
        serverLog('${logstore}',{eventId:'api_error',...e});
       }
      }
};
4.0.23

2 months ago

4.0.22-s

4 months ago

4.0.21

4 months ago

4.0.19

1 year ago

4.0.20

1 year ago

4.0.18

2 years ago

5.0.113

2 years ago

6.0.9

2 years ago

6.0.8

2 years ago

6.0.14

2 years ago

6.0.13

2 years ago

6.0.12

2 years ago

6.0.11

2 years ago

6.0.10

2 years ago

5.0.102

2 years ago

5.0.103

2 years ago

5.0.104

2 years ago

5.0.100

2 years ago

5.0.101

2 years ago

5.0.110

2 years ago

5.0.111

2 years ago

5.0.112

2 years ago

5.0.106

2 years ago

5.0.108

2 years ago

5.0.109

2 years ago

6.0.7

2 years ago

6.0.6

2 years ago

6.0.5

2 years ago

6.0.4

2 years ago

5.0.96

2 years ago

5.0.97

2 years ago

5.0.98

2 years ago

5.0.99

2 years ago

4.0.17

2 years ago

6.0.3

2 years ago

6.0.2

3 years ago

5.0.92

2 years ago

5.0.93

2 years ago

5.0.94

2 years ago

5.0.95

2 years ago

5.0.90

2 years ago

5.0.91

2 years ago

5.0.81

2 years ago

5.0.82

2 years ago

5.0.83

2 years ago

5.0.84

2 years ago

5.0.85

2 years ago

5.0.86

2 years ago

5.0.87

2 years ago

5.0.88

2 years ago

5.0.89

2 years ago

5.0.80

2 years ago

5.0.70

3 years ago

5.0.71

3 years ago

5.0.72

3 years ago

5.0.73

3 years ago

5.0.74

3 years ago

5.0.75

3 years ago

5.0.76

3 years ago

5.0.77

3 years ago

5.0.78

3 years ago

5.0.79

3 years ago

5.0.68

3 years ago

5.0.69

3 years ago

4.0.16

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.0.60

3 years ago

5.0.61

3 years ago

5.0.62

3 years ago

5.0.63

3 years ago

5.0.64

3 years ago

5.0.65

3 years ago

5.0.66

3 years ago

5.0.67

3 years ago

5.0.55

3 years ago

5.0.56

3 years ago

5.0.57

3 years ago

5.0.58

3 years ago

5.0.59

3 years ago

4.0.14

3 years ago

5.0.50

3 years ago

5.0.51

3 years ago

5.0.52

3 years ago

5.0.53

3 years ago

5.0.54

3 years ago

5.0.45

3 years ago

5.0.46

3 years ago

5.0.47

3 years ago

5.0.48

3 years ago

5.0.49

3 years ago

5.0.39

3 years ago

5.0.40

3 years ago

5.0.41

3 years ago

5.0.42

3 years ago

5.0.43

3 years ago

5.0.44

3 years ago

5.0.30

3 years ago

5.0.31

3 years ago

5.0.32

3 years ago

5.0.33

3 years ago

5.0.34

3 years ago

5.0.35

3 years ago

5.0.36

3 years ago

5.0.37

3 years ago

5.0.38

3 years ago

5.0.26

3 years ago

5.0.27

3 years ago

5.0.28

3 years ago

5.0.29

3 years ago

4.0.13

3 years ago

5.0.22

3 years ago

5.0.23

3 years ago

5.0.24

3 years ago

5.0.25

3 years ago

4.0.12

3 years ago

4.0.11

3 years ago

5.0.20

3 years ago

5.0.21

3 years ago

5.0.18

3 years ago

5.0.19

3 years ago

5.0.11

3 years ago

5.0.12

3 years ago

5.0.13

3 years ago

5.0.14

3 years ago

5.0.15

3 years ago

5.0.16

3 years ago

5.0.17

3 years ago

3.0.76

3 years ago

3.0.77

3 years ago

3.0.74

3 years ago

3.0.75

3 years ago

5.0.9

3 years ago

5.0.8

3 years ago

5.0.7

3 years ago

3.0.73

3 years ago

5.0.6

3 years ago

5.0.5

3 years ago

1.2.10

3 years ago

1.2.11

3 years ago

5.0.4

3 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

3.0.71

3 years ago

3.0.69

3 years ago

3.0.70

3 years ago

3.0.67

3 years ago

3.0.68

3 years ago

3.0.65

3 years ago

3.0.66

3 years ago

3.0.63

3 years ago

3.0.64

3 years ago

3.0.62

3 years ago

3.0.60

3 years ago

3.0.61

3 years ago

3.0.59

3 years ago

3.0.58

3 years ago

4.0.10

3 years ago

3.0.56

3 years ago

3.0.57

3 years ago

1.2.9

4 years ago

3.0.54

4 years ago

3.0.55

4 years ago

3.0.53

4 years ago

1.2.8

4 years ago

1.2.7

4 years ago

3.0.52

4 years ago

3.0.51

4 years ago

3.0.49

4 years ago

3.0.50

4 years ago

4.0.9

4 years ago

4.0.8

4 years ago

2.0.14

4 years ago

3.0.48

4 years ago

3.0.46

4 years ago

3.0.47

4 years ago

4.0.7

4 years ago

4.0.5

4 years ago

4.0.6

4 years ago

1.2.6

4 years ago

4.0.4

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

4.0.3

4 years ago

2.0.13

4 years ago

3.0.45

4 years ago

2.0.12

4 years ago

4.0.1

4 years ago

2.0.11

4 years ago

3.0.44

4 years ago

3.0.42

4 years ago

3.0.41

4 years ago

1.2.0

4 years ago

3.0.40

4 years ago

3.0.39

4 years ago

3.0.38

4 years ago

3.0.37

4 years ago

1.1.28

4 years ago

3.0.36

4 years ago

2.0.10

4 years ago

1.1.27

4 years ago

3.0.35

4 years ago

3.0.34

4 years ago

1.1.26

4 years ago

3.0.33

4 years ago

3.0.32

4 years ago

3.0.31

4 years ago

3.0.30

4 years ago

3.0.28

4 years ago

3.0.29

4 years ago

3.0.27

4 years ago

3.0.26

4 years ago

3.0.24

4 years ago

3.0.25

4 years ago

3.0.23

4 years ago

3.0.22

4 years ago

3.0.21

4 years ago

3.0.20

4 years ago

3.0.19

4 years ago

3.0.18

4 years ago

3.0.17

4 years ago

3.0.16

4 years ago

3.0.15

4 years ago

3.0.13

4 years ago

3.0.14

4 years ago

3.0.12

4 years ago

3.0.10

4 years ago

3.0.11

4 years ago

3.0.9

4 years ago

3.0.8

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.23

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

1.1.22

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

1.1.21

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.187

5 years ago

1.0.186

5 years ago

1.0.185

5 years ago

1.0.184

5 years ago

1.0.183

5 years ago

1.0.182

5 years ago

1.0.181

5 years ago

1.0.180

5 years ago

1.0.179

5 years ago

1.0.178

5 years ago

1.0.177

5 years ago

1.0.176

5 years ago

1.0.175

5 years ago

1.0.174

5 years ago

1.0.173

5 years ago

1.0.172

5 years ago

1.0.171

5 years ago

1.0.170

5 years ago

1.0.169

5 years ago

1.0.168

5 years ago

1.0.167

5 years ago

1.0.166

5 years ago

1.0.165

5 years ago

1.0.164

5 years ago

1.0.163

5 years ago

1.0.162

5 years ago

1.0.161

5 years ago

1.0.160

5 years ago

1.0.159

5 years ago

1.0.158

5 years ago

1.0.157

5 years ago

1.0.156

5 years ago

1.0.155

5 years ago

1.0.154

5 years ago

1.0.153

5 years ago

1.0.152

5 years ago

1.0.151

5 years ago

1.0.150

5 years ago

1.0.149

5 years ago

1.0.148

5 years ago

1.0.147

5 years ago

1.0.146

5 years ago

1.0.145

5 years ago

1.0.144

5 years ago

1.0.143

5 years ago

1.0.142

5 years ago

1.0.141

5 years ago

1.0.140

5 years ago

1.0.139

5 years ago

1.0.138

5 years ago

1.0.137

5 years ago

1.0.136

5 years ago

1.0.135

5 years ago

1.0.134

5 years ago

1.0.132

5 years ago

1.0.131

5 years ago

1.0.130

5 years ago

1.0.129

5 years ago

1.0.128

5 years ago

1.0.126

5 years ago

1.0.122

5 years ago

1.0.120

5 years ago

1.0.119

5 years ago

1.0.118

5 years ago

1.0.117

5 years ago

1.0.116

5 years ago

1.0.115

5 years ago

1.0.114

5 years ago

1.0.113

5 years ago

1.0.112

5 years ago

1.0.111

5 years ago

1.0.110

5 years ago

1.0.109

5 years ago

1.0.108

5 years ago

1.0.107

5 years ago

1.0.106

5 years ago

1.0.105

5 years ago

1.0.101

5 years ago

1.0.100

5 years ago

1.0.99

5 years ago

1.0.98

5 years ago

1.0.97

5 years ago

1.0.96

5 years ago

1.0.95

5 years ago

1.0.94

5 years ago

1.0.93

5 years ago

1.0.92

5 years ago

1.0.91

5 years ago

1.0.90

5 years ago

1.0.89

5 years ago

1.0.88

5 years ago

1.0.86

5 years ago

1.0.85

5 years ago

1.0.84

5 years ago

1.0.83

5 years ago

1.0.82

5 years ago

1.0.81

5 years ago

1.0.80

5 years ago

1.0.79

5 years ago

1.0.78

5 years ago

1.0.77

5 years ago

1.0.76

5 years ago

1.0.75

5 years ago

1.0.74

5 years ago

1.0.73

5 years ago

1.0.72

5 years ago

1.0.71

5 years ago

1.0.70

5 years ago

1.0.69

5 years ago

1.0.68

5 years ago

1.0.67

5 years ago

1.0.66

5 years ago

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.60

5 years ago

1.0.59

5 years ago

1.0.58

5 years ago

1.0.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.31

5 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago