Giter VIP home page Giter VIP logo

Comments (15)

xu42 avatar xu42 commented on July 23, 2024

@jingmian workman的安装,工程目录 composer update即可

from pay.

jingmian avatar jingmian commented on July 23, 2024

https://s1.ax1x.com/2018/09/12/ik0Th9.png
我这样设置后,然后composer update是否对?好像我无法拉取到你的项目下来

from pay.

xu42 avatar xu42 commented on July 23, 2024

@jingmian 切到你的工程目录 执行git clone [email protected]:xu42/pay.git

from pay.

jingmian avatar jingmian commented on July 23, 2024

有赞设置
代码设置
网站提示设置不合法
我已经上传到服务器了,并启动成功,但提示wrong server pay config出来,我设置key有错没

from pay.

xu42 avatar xu42 commented on July 23, 2024

@jingmian kdtId错误

from pay.

jingmian avatar jingmian commented on July 23, 2024

哈哈,可以了,谢谢。
我还想问下,我这个开发者模式的kdtId,clientId,clientSecret如果店铺没有续费订购他们产品,过期后也会失效吗

from pay.

xu42 avatar xu42 commented on July 23, 2024

@jingmian 如果你是微商城的话,到期不续费无法提现。

from pay.

jingmian avatar jingmian commented on July 23, 2024

明白了,对了,还有一个我付款后,它没有像你的demo那样,二维码显示那里变为“支付成功"是不是哪里还需要再设置

from pay.

xu42 avatar xu42 commented on July 23, 2024

@jingmian 根据报错信息排查一下

from pay.

wenlanhuitai avatar wenlanhuitai commented on July 23, 2024

现在还可以用吗?

from pay.

xu42 avatar xu42 commented on July 23, 2024

@wenlanhuitai 可以的,可以关注 dmeo

from pay.

wenlanhuitai avatar wenlanhuitai commented on July 23, 2024

阿里云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.

xu42 avatar xu42 commented on July 23, 2024

@wenlanhuitai 挡火拦截了

from pay.

wenlanhuitai avatar wenlanhuitai commented on July 23, 2024

@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.

xu42 avatar xu42 commented on July 23, 2024

@wenlanhuitai 回调信息传递给前端ws

from pay.

Related Issues (12)

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.