Coder Social home page Coder Social logo

请教,sendPreview,发送图文消息的时候,图片只能使用图片库的图片么,不能使用图片链接么,就像picurl那样。谢谢~~ about wechat-php-sdk HOT 4 CLOSED

dodgepudding avatar dodgepudding commented on May 5, 2024
请教,sendPreview,发送图文消息的时候,图片只能使用图片库的图片么,不能使用图片链接么,就像picurl那样。谢谢~~

from wechat-php-sdk.

Comments (4)

dodgepudding avatar dodgepudding commented on May 5, 2024

本来是可以直接发送图片url的,但为了避免资源浪费,后来将sendPreview的时候需要传入图片库图片ID,现在先通过uploadFile方法上传图片文件把获取文件fid,再把这个id传给sendPreview发送。

from wechat-php-sdk.

shaoyangyu avatar shaoyangyu commented on May 5, 2024

不好意思,可能问题没问清楚:
我的场景是sendPreview的时候,想直接使用云图片服务器上的图片资源,而不想把图片重复上传到公众平台的素材库。
所以想请教的是,是不是存在这样的局限,图文消息只能使用公众平台素材库的图片?有没方法可以使用非素材库的图片,通过一个URL的方式作为参数?

from wechat-php-sdk.

dodgepudding avatar dodgepudding commented on May 5, 2024

不可以的,就算使用云图片服务器的图片资源也会复制到公众平台素材库里

from wechat-php-sdk.

shaoyangyu avatar shaoyangyu commented on May 5, 2024

明白了。~~ 谢谢回复

余绍阳(yushaoyang)

在 2013年8月3日下午9:14,dodge [email protected]写道:

不可以的,就算使用云图片服务器的图片资源也会复制到公众平台素材库里


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-22054736
.

from wechat-php-sdk.

Related Issues (20)

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.