wechat

can I post json string only (without “name=”) using form?

旧巷老猫 提交于 2019-12-02 06:51:07
I am trying to post json data to an URL which I have no control. The API document says only json data is accepted. I am thinking whether I can use html form to make it easier. There are lots of posts here in regards of how to "post json data using form", none of them applies my situation. The problem is, as far as I know, if you post data using form, the thing being post is always "name=value", however, the API wants only "value". That is to say, even though I can JSON.stringify input values to a JSON string, I still need to post it with a "name", which the API doesn't want. So this is my

使用laravel-wechat微信支付

混江龙づ霸主 提交于 2019-12-01 19:39:40
参考文档 https://github.com/overtrue/laravel-wechat https://easywechat.com/docs/4.1/payment/index laravel-wechat 微信 SDK for Laravel 5 / Lumen, 基于 overtrue/wechat 交流QQ群:319502940 框架要求 Laravel/Lumen >= 5.1 安装 # Laravel < 5.8 composer require "overtrue/laravel-wechat:~4.0" # Laravel >= 5.8 composer require "overtrue/laravel-wechat:~5.0" 配置 Laravel 应用 在 config/app.php 注册 ServiceProvider 和 Facade (Laravel 5.5 + 无需手动注册) 'providers' => [ // ... Overtrue\LaravelWeChat\ServiceProvider::class, ], 'aliases' => [ // ... 'EasyWeChat' => Overtrue\LaravelWeChat\Facade::class, ], 创建配置文件: php artisan vendor

微信公众号爬虫--历史文章

余生颓废 提交于 2019-12-01 04:59:22
今天搞了一个微信公众号历史文章爬虫的demo,亲测可行,记录一下!(不喜勿喷) 缺点:1.不是很智能 2. 兼容性不是很好,但是能应付正常情况啦 使用mysql+request 数据库部分 直接建表ddl吧: CREATE TABLE `wechat_content` ( `id` int(11) NOT NULL AUTO_INCREMENT, `wechat_name` varchar(255) DEFAULT NULL COMMENT '公众号名字', `title` varchar(225) DEFAULT NULL COMMENT '文章标题', `content_url` varchar(1000) DEFAULT NULL COMMENT '文章地址', `cover` varchar(1000) DEFAULT NULL COMMENT '封面图', `source_url` varchar(1000) DEFAULT NULL COMMENT '转载url', `source_name` varchar(255) DEFAULT NULL COMMENT '转载公众号名', `datetime` varchar(255) DEFAULT NULL COMMENT '发布时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO

Open Wechat official account via link on external page

岁酱吖の 提交于 2019-12-01 04:01:40
I couldn't find any reference to that question, and I hope someone here knows. I created a promotional html5 page for a client. This page is on my server. I am sharing the page address via WeChat to the client, and he is re-sharing it to his friends. When they open the page, it's opening in the WeChat APP Browser. So far so good. He asked me to implement a button / link on that page, directing users to his official account on WeChat. And that's where I am stuck, because I couldn't find any reference for doing this, but I know it's possible. I found some QR codes, that when scanned via the

Open Wechat official account via link on external page

旧街凉风 提交于 2019-12-01 01:03:23
问题 I couldn't find any reference to that question, and I hope someone here knows. I created a promotional html5 page for a client. This page is on my server. I am sharing the page address via WeChat to the client, and he is re-sharing it to his friends. When they open the page, it's opening in the WeChat APP Browser. So far so good. He asked me to implement a button / link on that page, directing users to his official account on WeChat. And that's where I am stuck, because I couldn't find any

WeChat android api

我与影子孤独终老i 提交于 2019-11-30 22:12:08
I am trying to make an Android app which communicates with WeChat app. Followed the sample from here But in the sample and in my own app I am able to make api calls, which is being done. For example api.sendResp(resp) results to true. But nothing happens, while authorising I still get null token from SendAuth.Resp. Has anyone faced this problem? Meng Wang Two things to check: is the package signature right? did the app approved?(before approved you cannot publish anything) make sure those and you'll get it work. good luck. There's much more to check than just the package signature when trying

Story of Jerry Wang's Wechat subscription account

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 16:21:48
As an SAP Techinical Ambassador,Jerry is always willing to share his SAP expertise to various social medial channel. Being awareness of the fact that most local partners in China prefer to read blogs written in their mother language(Chinese), Jerry then applied a Wechat subscription account in December 2017 and started to write blogs in Chinese there till now. (Wechat is not only a most popular mobile application in Asia with 1.1 billions active users per month, but also a platform nowsdays on top of which various so called "mini-program" can run ) So far there are totally 4673 persons who

JavaScript自动播放背景音乐

元气小坏坏 提交于 2019-11-30 13:45:10
问题描述 js控制audio自动播放音乐时报错: >Uncaught (in promise) DOMException 我的报错之前的代码: <audio id="myaudio" src="assets/audio/芒种.mp3" controls="controls" loop="true" hidden="true"> </audio> $(function () { var myAuto = document.getElementById('myaudio'); myAuto.play(); }) 网上搜原因说是: >这是因为,Chrome只允许用户对网页进行主动触发后才可自动播放音频和视频。其实,严格地来说,是Chrome不允许在用户对网页进行触发之前播放音频,而视频其实是不受限制的。但因为视频文件同样包含了音频,所以也一同被禁止了。Chrome这样做的目的是为了防止开发者滥用自动播放功能而对用户产生骚扰。 内容来源于: http://www.nooong.com/docs/chrome_video_autoplay.htm 解决办法: 在上面的html代码中加入<code>autoplay</code>,如下: <audio id="myaudio" src="assets/audio/芒种.mp3" controls="controls" autoplay loop

Linux 笔记:核心思想、常用命令以及脚本语法

不问归期 提交于 2019-11-30 13:32:29
总结于 《鸟哥的 Linux 私房菜 - 基础学习篇》 ,图片也来自于此。 核心思想 目录树结构(directory tree) Linux 系统是基于目录树结构的,这是它的核心思想 。目录,即文件夹。Linux 系统相当于一个文件夹,Linux 系统的所有数据要么对应一个文件夹,要么就是一个文件。比如,你新建一个用户,其实就是新建了一个文件夹。一个用户对应一个文件夹。目录树结构: 上图中 长方形是文件夹 , 波浪形是文件 ,根目录是 / 。这个 / 很巧妙,在 macOS 中,假设你下载文件 test.md 到 /Users/username/Desktop/ ,那么文件会下载到桌面,最前面这个 / 就是根目录。如果你写成 Users/username/Desktop/ ,那么文件就会下载到 currentDerectory/Users/username/Desktop/ 下。 Linux 系统使用的是目录树架构,但其实数据是存放在 磁盘分区 当中的,那么问题来了:目录树和磁盘分区是神马关系?这个时候就牵扯到一个叫「挂载(mount)」的概念了。 目录树和磁盘分区的关系 挂载其实就是建立目录树和磁盘分区之间的关系。目录只是一个标识,叫什么我们可以自定义,一个磁盘分区对应一个目录。 我们经常用 U 盘,假设一个 U 盘是一个磁盘分区,我们把一个假设叫 partition1 的 U

SSLError: Can't connect to HTTPS URL because the SSL module is not available on google app engine

天大地大妈咪最大 提交于 2019-11-30 11:03:18
Want to use wechat sdk to create menu WeChat.create_menu({ "button":[ { "type":"click", "name":"Daily Song", "key":"V1001_TODAY_MUSIC" }, { "type":"click", "name":" Artist Profile", "key":"V1001_TODAY_SINGER" }, { "name":"Menu", "sub_button":[ { "type":"view", "name":"Search", "url":"http://www.soso.com/" }, { "type":"view", "name":"Video", "url":"http://v.qq.com/" }, { "type":"click", "name":"Like us", "key":"V1001_GOOD" }] }] }) Currently not work because of this error: Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime