Comments (15)
@jingmian workman的安装,工程目录 composer update
即可
from pay.
https://s1.ax1x.com/2018/09/12/ik0Th9.png
我这样设置后,然后composer update是否对?好像我无法拉取到你的项目下来
from pay.
@jingmian 切到你的工程目录 执行git clone [email protected]:xu42/pay.git
from pay.
有赞设置
代码设置
网站提示设置不合法
我已经上传到服务器了,并启动成功,但提示wrong server pay config出来,我设置key有错没
from pay.
@jingmian kdtId错误
from pay.
哈哈,可以了,谢谢。
我还想问下,我这个开发者模式的kdtId,clientId,clientSecret如果店铺没有续费订购他们产品,过期后也会失效吗
from pay.
@jingmian 如果你是微商城的话,到期不续费无法提现。
from pay.
明白了,对了,还有一个我付款后,它没有像你的demo那样,二维码显示那里变为“支付成功"是不是哪里还需要再设置
from pay.
@jingmian 根据报错信息排查一下
from pay.
现在还可以用吗?
from pay.
@wenlanhuitai 可以的,可以关注 dmeo
from pay.
阿里云ECS :
网页报错: (index):61 WebSocket connection to 'ws://www.xxxxxx.com:11942/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
代码如下:
`<?php
require_once DIR . '/../vendor/autoload.php';
use Service\PayService;
use Workerman\WebServer;
use Workerman\Worker;
$webServer = new WebServer('http://127.0.0.1:80');
$webServer->addRoot('localhost:80', DIR . '/../public/');
$webServer->count = 3;
// $context = [
// 'ssl' => [
// 'local_cert' => '',
// 'local_pk' => '',
// 'verify_peer' => false,
// ],
// ];
$webSocketServer = new Worker('websocket://0.0.0.0:11942');
$webSocketServer->count = 1;
// $webSocketServer->transport = 'ssl';
$webSocketServer->userConnections = [];
$webSocketServer->userQRs = [];
$webSocketServer->onWorkerStart = function () use ($webSocketServer) {
$textWorker = new Worker('Text://127.0.0.1:11900');
$textWorker->onMessage = 'Service\InnerTextServer::onMessage';
$textWorker->listen();
};
$webSocketServer->onMessage = function ($connection, $message) use ($webSocketServer) {
$arr = explode(',', $message);
if (!isset($connection->userId)) {
$connection->userId = $arr[0];
$webSocketServer->userConnections[$connection->userId] = $connection;
}
(new PayService)->create($connection, $arr[1], $arr[2]);
};
Worker::runAll();`
from pay.
@wenlanhuitai 挡火拦截了
from pay.
@xu42 谢谢,已经可以支付了,但是有一个疑问:扫码和支付成功没有回调通知。
有一个地方不太了解,什么意思?textWorker 主要是干什么用的呢?
$webSocketServer->onWorkerStart = function () use ($webSocketServer) {
$textWorker = new Worker('Text://127.0.0.1:20000');
$textWorker->onMessage = 'Service\InnerTextServer::onMessage';
$textWorker->listen();
};
from pay.
@wenlanhuitai 回调信息传递给前端ws
from pay.
Related Issues (12)
- 119 这个是什么鬼 HOT 1
- 发现三个问题 HOT 4
- 楼主 你的telegram失效了 怎么联系 HOT 5
- 有赞云现在不支持添加有赞微小店作为店铺了么 HOT 1
- 你好,你的微小店还能用吗?现在不能绑定微小店了 HOT 1
- php start.php, while it doesn't work! HOT 2
- 兄弟把这个弄成一个SDK应该更好 HOT 1
- 程序员居然有女朋友 HOT 1
- 有赞平台每年的使用费也不低 HOT 5
- 大佬,获取不到支付状态 HOT 3
- 最近交易消息推出v3了 代码是不是要改了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pay.