42 lines
969 B
PHP
Executable File
42 lines
969 B
PHP
Executable File
<?php
|
|
namespace app\shopapi\controller;
|
|
|
|
use app\shopapi\logic\DepositLogic;
|
|
|
|
/**
|
|
* 保证金控制器类
|
|
* Class CoachController
|
|
* @package app\coachapi\controller
|
|
*/
|
|
class DepositController extends BaseShopController
|
|
{
|
|
|
|
/**
|
|
* @notes 获取保证金套餐
|
|
* @return \think\response\Json
|
|
* @author cjhao
|
|
* @date 2024/8/27 18:22
|
|
*/
|
|
public function depositPackage()
|
|
{
|
|
$result = (new DepositLogic())->depositPackage($this->shopUserId);
|
|
return $this->success('',$result);
|
|
}
|
|
|
|
/**
|
|
* @notes 提交订单
|
|
* @return \think\response\Json
|
|
* @author cjhao
|
|
* @date 2024/8/27 18:37
|
|
*/
|
|
public function sumbitOrder()
|
|
{
|
|
$params = $this->request->post();
|
|
$result = (new DepositLogic())->sumbitOrder($params,$this->shopId);
|
|
if(false === $result){
|
|
return $this->fail(DepositLogic::getError());
|
|
}
|
|
return $this->success('',$result);
|
|
|
|
}
|
|
} |