java-wechaty
java-wechaty copied to clipboard
memory-card and stateswitch
完成了memory-card和stateswitch
Good job, you are very fast!
I believe this PR should link to our SoC at https://github.com/wechaty/summer-of-code/issues/4
没测试过的好像都是测试类,好像是因为我有本地文件和obs的连接配置所以ci的时候过不了
好的,这个好像是刚开始写kotlin的时候写的
------------------ 原始邮件 ------------------ 发件人: "犀利豆"<[email protected]>; 发送时间: 2020年10月18日(星期天) 晚上8:57 收件人: "wechaty/java-wechaty"<[email protected]>; 抄送: "."<[email protected]>; "State change"<[email protected]>; 主题: Re: [wechaty/java-wechaty] memory-card and stateswitch (#64)
@diaozxin007 approved this pull request.
In wechaty-puppet/src/main/kotlin/io/github/wechaty/memorycard/MemoryCard.kt:
> + val _options: MemoryCardOptions = options ?: MemoryCardOptions() + log.info("MemoryCard, constructor({})", JsonUtils.write(_options)) + + if(name != null) { + _options.name = name + } + + else if (_options.name != null) { + this.name = _options.name + } + else { + // 如果没有给名字就用一个default作为名字 + this.name = "default" + _options.name = "default" + } + this.options = _options
!的写法可以更 koltin 一些
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.