Merge branch 'feat_agree' into dev
This commit is contained in:
commit
c32f93b6b5
@ -48,6 +48,10 @@ use think\facade\Log;
|
|||||||
use think\facade\Queue;
|
use think\facade\Queue;
|
||||||
use crmeb\jobs\SendSmsJob;
|
use crmeb\jobs\SendSmsJob;
|
||||||
use crmeb\jobs\TestJob;
|
use crmeb\jobs\TestJob;
|
||||||
|
use crmeb\services\PayService;
|
||||||
|
use crmeb\services\CombinePayService;
|
||||||
|
use app\common\model\user\User;
|
||||||
|
|
||||||
use app\controller\api\Ceshi;
|
use app\controller\api\Ceshi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,8 +64,24 @@ class Auth extends BaseController
|
|||||||
{
|
{
|
||||||
public function dotest()
|
public function dotest()
|
||||||
{
|
{
|
||||||
Queue::push(SendSmsJob::class, ['tempId' => 'ORDER_CREATE', 'id' => 101]);
|
$repository = app()->make(StoreOrderRepository::class);
|
||||||
return app('json')->success();
|
$param = [
|
||||||
|
"status" => 0,
|
||||||
|
"is_del" => 0,
|
||||||
|
"mer_id" => 5,
|
||||||
|
"type" => 10,
|
||||||
|
"meal_id" => 10,
|
||||||
|
"pay_type" => 1,
|
||||||
|
"attach" => "meal",
|
||||||
|
"order_info" => '{"type_id":10,"is_margin":1,"margin":"0.01"}',
|
||||||
|
"pay_price" => "0.01",
|
||||||
|
"order_sn" => "bzj" . date('YmdHis') . uniqid(),
|
||||||
|
"body" => uniqid(),
|
||||||
|
];
|
||||||
|
$payType = 'weixinApp';
|
||||||
|
$service = new PayService($payType, $param);
|
||||||
|
$payInfo = $service->pay(User::where(['uid'=>1])->find());
|
||||||
|
return app('json')->success($payInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test()
|
public function test()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user