mirror of
https://github.com/RxReader/tencent_kit.git
synced 2025-06-27 23:48:50 +08:00
优化
This commit is contained in:
@ -29,6 +29,13 @@ steps:
|
||||
# - cd example/android/
|
||||
# - ./gradlew :tencent_kit:check
|
||||
|
||||
# docker run --rm -it -v ${PWD}:/src v7lin/clang:5.0.2-r0 sh -c "clang-format -style=file -i src/Classes/*.h src/Classes/*.m"
|
||||
#- name: ios-format
|
||||
# image: v7lin/clang
|
||||
# commands:
|
||||
# - cd ios/
|
||||
# - clang-format -style=file -i src/Classes/*.h src/Classes/*.m
|
||||
|
||||
- name: format
|
||||
image: v7lin/flutter:1.9.1-hotfix.6-stable
|
||||
volumes:
|
||||
|
@ -1,3 +1,7 @@
|
||||
## 1.0.1 - 2019.11.14
|
||||
|
||||
* 优化
|
||||
|
||||
## 1.0.0 - 2019.11.14
|
||||
|
||||
* 更名 tencent_kit
|
||||
|
@ -1,4 +1,5 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'package:quiver/strings.dart' as strings;
|
||||
import 'package:tencent_kit/src/model/api/tencent_api_resp.dart';
|
||||
|
||||
part 'tencent_user_info_resp.g.dart';
|
||||
@ -80,16 +81,19 @@ class TencentUserInfoResp extends TencentApiResp {
|
||||
}
|
||||
|
||||
String headImgUrl() {
|
||||
if (figureurlQq2 != null && figureurlQq2.isNotEmpty) {
|
||||
if (strings.isNotEmpty(figureurlQq)) {
|
||||
return figureurlQq;
|
||||
}
|
||||
if (strings.isNotEmpty(figureurlQq2)) {
|
||||
return figureurlQq2;
|
||||
}
|
||||
if (figureurlQq1 != null && figureurlQq1.isNotEmpty) {
|
||||
if (strings.isNotEmpty(figureurlQq1)) {
|
||||
return figureurlQq1;
|
||||
}
|
||||
if (figureurl2 != null && figureurl2.isNotEmpty) {
|
||||
if (strings.isNotEmpty(figureurl2)) {
|
||||
return figureurl2;
|
||||
}
|
||||
if (figureurl1 != null && figureurl1.isNotEmpty) {
|
||||
if (strings.isNotEmpty(figureurl1)) {
|
||||
return figureurl1;
|
||||
}
|
||||
return figureurl;
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: tencent_kit
|
||||
description: A powerful Flutter plugin allowing developers to share or authorize with natvie android & iOS Tencent SDKs.
|
||||
version: 1.0.0
|
||||
version: 1.0.1
|
||||
author: v7lin <v7lin@qq.com>
|
||||
homepage: https://github.com/v7lin/fake_tencent
|
||||
|
||||
|
Reference in New Issue
Block a user