2025-09-23 16:43:18 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace app\cunkebao\controller;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use app\common\controller\PaymentService;
|
|
|
|
|
|
|
|
|
|
class Pay
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public function createOrder()
|
|
|
|
|
{
|
|
|
|
|
$order = [
|
|
|
|
|
'companyId' => 111,
|
|
|
|
|
'userId' => 111,
|
2025-09-24 14:09:27 +08:00
|
|
|
'orderNo' => date('YmdHis') . rand(100000, 999999),
|
2025-09-23 16:43:18 +08:00
|
|
|
'goodsId' => 34,
|
|
|
|
|
'goodsName' => '测试测试',
|
|
|
|
|
'orderType' => 1,
|
|
|
|
|
'money' => 1
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
$paymentService = new PaymentService();
|
|
|
|
|
$res = $paymentService->createOrder($order);
|
|
|
|
|
return $res;
|
|
|
|
|
}
|
|
|
|
|
}
|