Giter VIP home page Giter VIP logo

Comments (9)

welcome avatar welcome commented on June 1, 2024

Thanks for opening your first issue here! Be sure to follow the issue template!

from notify.

create-issue-branch avatar create-issue-branch commented on June 1, 2024

Branch issue-22-Guanguans_Notify_Messages_DingTalk_actionCard_对象处理有点问题,btns会重复 created!

from notify.

guanguans avatar guanguans commented on June 1, 2024

@wqsacy 这个是在验证每一个 btn 的信息,好像没啥问题吧

from notify.

wqsacy avatar wqsacy commented on June 1, 2024

@wqsacy 这个是在验证每一个 btn 的信息,好像没啥问题吧

我按照列子写了一个demo,发现传入的按钮会重复出现,我是在组建了Message 对象后,强制更新了 btns 对象值 ,才能正常使用。

from notify.

guanguans avatar guanguans commented on June 1, 2024

@wqsacy 可以贴一下你使用的代码吗,我看一下。

from notify.

wqsacy avatar wqsacy commented on June 1, 2024

@wqsacy 可以贴一下你使用的代码吗,我看一下。

		$params = [
			'text'  => "杭州天气dsds" ,
			'title' => 'this is title' ,
			'btns'  => [
				[
					'title'     => 'btn1' ,
					'actionURL' => 'https://github.com/guanguans/notify' ,
				] ,
				[
					'title'     => 'btn2' ,
					'actionURL' => 'https://github.com/guanguans/notify' ,
				]
			]
		];
		
		$messageObj = new BtnsActionCardMessage( $params );
		
		return Factory::dingTalk()
		              ->setToken( 'token' )
		              ->setSecret( 'secret' )
		              ->setMessage( $messageObj )
		              ->send();

WX20220909-183113@2x

from notify.

guanguans avatar guanguans commented on June 1, 2024

@wqsacy 是有问题,重复添加了。我有时间改一下吧。或者你改一下 pr 过来也行。

from notify.

wqsacy avatar wqsacy commented on June 1, 2024

@wqsacy 是有问题,重复添加了。我有时间改一下吧。或者你改一下 pr 过来也行。

看时间哈,有时间pr一下

from notify.

guanguans avatar guanguans commented on June 1, 2024

@wqsacy 已修复,请尝试更新至最新版本。

from notify.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.