Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0]Message/Article类的$properties内的source_url没有正常转换为content_source_url. #281

Closed
yanqing6628780 opened this issue Feb 5, 2016 · 1 comment

Comments

@yanqing6628780
Copy link

要改成以下才能正常提交原文链接
`class Article extends AbstractMessage
{
/**
* Properties.
*
* @var array
*/
protected $properties = [
'thumb_media_id',
'author',
'title',
'content',
'digest',
'content_source_url',
// 'source_url',
'show_cover',
];

/**
 * Aliases of attribute.
 *
 * @var array
 */
protected $aliases = [
    // 'source_url' => 'content_source_url',
    'show_cover' => 'show_cover_pic',
];

}`

我在new时使用source_url构造.看日志,post到微信那边的字段还是source_url.
$article = new Article([
'title' => $item['title'],
'author' => $item['author'],
'content' => $item['content'],
'digest' => $item['digest'],
'source_url' => $item['content_source_url'],
]);

@yanqing6628780 yanqing6628780 changed the title Message/Article类的$properties内的source_url没有正常转换为content_source_url. [3.0]Message/Article类的$properties内的source_url没有正常转换为content_source_url. Feb 7, 2016
@overtrue
Copy link
Collaborator

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants