支付提交
This commit is contained in:
27
Server/application/cunkebao/controller/Pay.php
Normal file
27
Server/application/cunkebao/controller/Pay.php
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user