wechat

.net Core2.2 WebApi通过OAuth2.0实现微信登录

大憨熊 提交于 2020-02-15 00:20:15
前言 微信相关配置请参考 微信公众平台 的这篇文章。注意授权回调域名一定要修改正确。 微信网页授权是通过OAuth2.0机制实现的,所以我们可以使用 https://github.com/china-live/QQConnect 这个开源项目提供的中间件来实现微信第三方登录的流程。 开发流程 1、新建一个.net core webapi 项目。在NuGet中查找并安装 AspNetCore.Authentication.WeChat 包。 2、修改 appsettings.json 配置文件,增加以下配置: 1 "Authentication": { 2 "WeChat": { 3 "AppId": "微信AppID", 4 "AppSecret": "微信AppSecret" 5 } 6 }, 7 "Logging": { 8 "LogLevel": { 9 "Default": "Debug", //日志级别从低到高,依次为:Debug,Information,Warning,Error,None 10 "Microsoft.EntityFrameworkCore": "Error", 11 "System": "Error" 12 } 13 } 3、修改 Startup 1 services.AddSingleton<IHttpContextAccessor,

PC微信多开的解决方案

本秂侑毒 提交于 2020-02-14 01:03:13
例如,我想登录两个微信,我电脑上微信程序的绝对路径是 D:\Program Files (x86)\Tencent\WeChat\WeChat.exe 1.新建文本文件,然后在文件中写入以下命令(因为我要启动两个微信,所以执行两次start命令,如果你想开8个,那就执行8次start ) start /d "D:\Program Files (x86)\Tencent\WeChat" WeChat.exe start /d "D:\Program Files (x86)\Tencent\WeChat" WeChat.exe 命令格式: start /d "微信应用的安装目录" 微信程序名 2.修改文件名为StartMultiWeChat.bat(主要是修改扩展名为bat,扩展名之外的部分任意 ) 3.双击运行即可开启两个微信, 注意:在运行这个bat之前先关闭微信应用 来源: https://www.cnblogs.com/buyishi/p/12306058.html

Deepin Linux 升级wine应用

跟風遠走 提交于 2020-02-10 14:44:19
前提是升级已经安装的wine应用 参考: 微信升级 mkdir /tmp/wechat cd /tmp/wechat wget https://dldir1.qq.com/weixin/Windows/WeChatSetup.exe env WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine WeChatSetup.exe 第四步是启用安装步骤 , 安装覆盖原目录。 备份升级 如果怕升级有问题。可以备份下目录 ~/.deepinwine/Deepin-WeChat , 这个目录包含了全部环境 。 复制备份下这个目录就可以 了。 来源: https://www.cnblogs.com/ElEGenT/p/12290820.html

Ubuntu安装微信

 ̄綄美尐妖づ 提交于 2020-02-09 03:50:30
1.系统是Ubuntu 16.04 64位系统,在网上先去下载electronic-wechat- Linux https://github.com/geeeeeeeeek/electronic-wechat/releases ,32位系统就去下载32位的,64位的就去下载64位的. 现在最新版本是 v2.0 (2017.02.15) ubuntu版本的微信图形界面做的还是很不错的。 2. 将下载好的微信压缩包解压 tar -zxvf linux-x64.tar.gz 解压后文件名是electronic-wechat-linux-x64 ,这个就是微信的安装包录。 3. 我比较喜欢将应用程序放在/opt 目录下所以将解压好的文件夹移动到/opt目录。 sudo mv electronic-wechat-linux-x64 /opt 4.进入到 /opt/electronic-wechat-linux-x64 electronic-wechat 就是微信程序了。直接运行它就可以通过手机扫码登录了。   cd /opt/electronic-wechat-linux-x64   ./ electronic-wechat 5.点击左边这个微信图标右键锁定到启动器方便以后登录。 如果你支持我,就扫扫我的红包,你领我几毛,我领几毛,也算是对我的支持。 来源: https://www

《大话设计模式》——工厂方法模式

帅比萌擦擦* 提交于 2020-02-05 18:39:04
工厂方法模式 :定义一个创建产品对象的工厂接口,将实际创建工作推迟到子类中。 介绍 工厂方法模式 ,又称 工厂模式 、 多态工厂模式 和 虚拟构造器模式 ,通过定义工厂父类负责定义创建对象的公共接口,而子类则负责生成具体的对象。 对比简单工厂模式 是对简单工厂模式的一个延伸 ,所以它们诞生的背景以及所解决的问题是大同小异。(不了解简单工厂模式的请看 《大话设计模式》——简单工厂模式 ) 简单工厂模式 简单来说,简单工厂模式是由一个工厂对象 根据不同参数创建不同的实例 。具体传什么参数,创建什么实例的逻辑是在工厂对象中完成的。 优点 : 只需要传入一个正确的参数,就可以获取你所需要的对象而无需知道其创建细节。 缺点 : 工厂一旦需要生产新产品就需要修改工厂类的方法逻辑,违背了 开放—封闭原则 ; 如果产品实例种类很多,也导致了工厂内部逻辑复杂,不易维护。 工厂方法模式 工厂方法模式是对简单工厂模式进一步的解耦。将把原本会因为业务代码而庞大的简单工厂类, 拆分成了一个个的工厂类 ,这样代码就不会都耦合在同一个类里了。 优点 : 用户只需要关心所需产品的对应工厂,无需关心细节 加入新产品符合开闭原则, 提高可扩展性 进一步降低了程序的 耦合性 缺点 : 类的个数容易过多,增加复杂度 增加了系统的抽象性和理解难度 详细介绍 工厂方法模式的四个要素: 抽象产品类 (Product)

如何设计一个日志表(笔记)

ε祈祈猫儿з 提交于 2020-01-22 21:39:30
CREATE TABLE "public" . "scrm_wechat_request_log" ( "id" int8 DEFAULT nextval ( 'scrm_wechat_request_log_id_seq' ::regclass ) NOT NULL , "log_type" int2 DEFAULT 0 , "server_port" int2 DEFAULT 0 , "server_name" varchar ( 64 ) COLLATE "default" DEFAULT '' :: character varying , "server_ip" varchar ( 200 ) COLLATE "default" DEFAULT NULL :: character varying , "request_param" varchar ( 500 ) COLLATE "default" DEFAULT NULL :: character varying , "request_interface" varchar ( 64 ) COLLATE "default" DEFAULT NULL :: character varying , "request_timestamp" int8 , "request_time" int4 , "request_type"

The Smart Field Service Prototype powered by SAP FSM and Wechat

自闭症网瘾萝莉.ら 提交于 2020-01-22 08:45:07
In this blog I will introduce a prototype regarding a Smart Field Service prototype recently developed by our team. The aim of this prototype development is to give our local partners a demonstration about how SAP FSM is flexible enough to integrate with popular mobile application framework to achieve a more modern user experience. SAP FSM is named as VISIONARIES in Gartner Magic Quadrant for Field Service Management. See the report in Aprial 2019. And till 2019 Q1, Wechat has more than 1.1 billions active users per month. The Wechat users finds out that more and more of activities in their

微信小程序左右联动菜单(即可左联动,也可右联动)

一世执手 提交于 2020-01-19 22:44:42
<!-- 搜索 --> <view class="search"> <input class="search-box" placeholder='痘研商城' bindtap='goodsName'></input> <image src="{{staticImg}}index/iconSearch.png" class='question-mark'></image> </view> <!-- 左侧导航 --> <view class='tui-fixed-left'> <scroll-view class='tui-city-scroll' scroll-x="true" scroll-y="true" style='height:92%;' scroll-with-animation="true" scroll-top="{{leftMenuTop}}"> <text class="menu-item {{index === currentActiveIndex ? 'menu-active' : ''}}" wx:for="{{navList}}" wx:key="unique" data-index="{{index}}" id='{{index}}' catchtap='changeMenu'>{{item.c_name}}</text> </scroll-view> <

both labels shows “WeChat” when share to wechat friend and timeline

可紊 提交于 2020-01-14 02:08:26
问题 i've a android app to share message to WeChat(without sdk). When i directly use the StartChooser method, the display-name 'Send to Moment' and 'Send to Chat' display well. But when i want to remove the apps i donot need using a intent filter as follows, there's problem that both display-name show 'WeChat' rather than 'Send to Moment' and 'Send to Chat'.But at the same time,their icon are right! Who can tell me how to get the right display label?? Thank you! Intent it = new Intent(Intent

How does link with href for Line and Wechat?

匆匆过客 提交于 2020-01-13 06:34:12
问题 Do you know the protocol for Line and Wechat? I want to find link of Line and Wechat like yahoo(ymsgr:sendIM?userid) and skype(skype:userid?chat) 回答1: The protocol you are looking for is weixin:// We are currently aware of 2 different ways to call this: weixin://contacts/profile/USERNAME - USERNAME is a variable weixin://qr/DECODED_QR_CODE - DECODED_QR_CODE is the decoded version of a WeChat QR code. * IMPORTANT NOTE: Please note this functionality has been deprecated* 来源: https:/