支付提交

This commit is contained in:
wong
2025-09-23 16:43:18 +08:00
parent a8a9cf76df
commit 7ed368a137
7 changed files with 778 additions and 4 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace app\cunkebao\controller;
use app\common\controller\PaymentService;
class Pay
{
public function createOrder()
{
$order = [
'companyId' => 111,
'userId' => 111,
'orderNo' => time() . rand(100000, 999999),
'goodsId' => 34,
'goodsName' => '测试测试',
'orderType' => 1,
'money' => 1
];
$paymentService = new PaymentService();
$res = $paymentService->createOrder($order);
return $res;
}
}

View File

@@ -56,11 +56,11 @@ class GetPotentialListWithInCompanyV1Controller extends BaseController
}
if (!empty($device)) {
$where[] = ['d.deviceId', '=', $device];
// $where[] = ['d.deviceId', '=', $device];
}
if (!empty($taskId)) {
$where[] = ['t.sceneId', '=', $taskId];
//$where[] = ['t.sceneId', '=', $taskId];
}
$where[] = ['s.companyId', '=', $this->getUserInfo('companyId')];