PHP微信公众开发笔记(十)
PHP微信公众开发笔记系列
日期:2014.9.10
在新浪SAE上用Storage存储资源,如果选择了资源防盗链的选项,那么将设置了防盗链的图片用作公众平台图文链接的封面,将显示不出图片。
2014.9.11整理笔记:
写这个笔记的时候,在赶功能,所以也就是简单的记几笔当时的工作内容,现在功能开发得差不多了,就来整理之前的笔记。当时就很简单的记录了上文的那几句。
主要是图文链接的那个封面问题。如果我直接用微信素材库里面的图片作为连接,那么图文链接的封面图片是显示不出来的。这个问题困扰了我好久,后来想,干脆用SAE的storage服务来存储这些图片好了,反正图片也不会有很多。
有这个想法之后就是把素材库中的图片下载下来,处理一下之后放到storage中去,然后改一下数据库中的链接。但是发现还是显示不了。当时就很郁闷了,难道就没法子了么。
后来一想,在我操作storage的时候,有个选项叫做防盗链,我想可能是这个作怪了。因为我之前做的帮助那个图文链接封面是可以显示出来的,而那个是没有设置防盗链的。所以我就将这些图片的防盗链去掉了,去掉之后就可以了,显示出了封面图片。
微信公众平台的开发功能上都做的差不多了,这个过程中我也是学到了很多的东西。PHP的很多只是、mysql的相关知识、SAE的相关知识、公众平台是相关知识等等。所以说有的时候,并不是说用一门语言去实现某个功能只要关注这一门语言的知识,更多的时候是要涉及到很多别的知识的,学一门语言可能会顺带的学到好多的东西。
所以不要停止学习的脚步!!!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Validator can be created by adding the following two lines in the controller.
