java-wechaty icon indicating copy to clipboard operation
java-wechaty copied to clipboard

memory-card and stateswitch

Open LuSingTea opened this issue 4 years ago • 4 comments

完成了memory-card和stateswitch

LuSingTea avatar Jul 19 '20 11:07 LuSingTea

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 19 '20 11:07 CLAassistant

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

huan avatar Jul 20 '20 07:07 huan

没测试过的好像都是测试类,好像是因为我有本地文件和obs的连接配置所以ci的时候过不了

LuSingTea avatar Aug 03 '20 15:08 LuSingTea

好的,这个好像是刚开始写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.

LuSingTea avatar Oct 18 '20 14:10 LuSingTea