|
@@ -12,6 +12,7 @@ declare (strict_types = 1);
|
|
|
|
|
|
|
|
namespace app\api\controller;
|
|
namespace app\api\controller;
|
|
|
|
|
|
|
|
|
|
+use app\api\service\Payment;
|
|
|
use app\api\service\Setting as SettingService;
|
|
use app\api\service\Setting as SettingService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -34,4 +35,18 @@ class Setting extends Controller
|
|
|
$setting = $service->getPublic();
|
|
$setting = $service->getPublic();
|
|
|
return $this->renderSuccess(compact('setting'));
|
|
return $this->renderSuccess(compact('setting'));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * @return \think\response\Json
|
|
|
|
|
+ * @throws \app\common\exception\BaseException
|
|
|
|
|
+ * @throws \think\db\exception\DataNotFoundException
|
|
|
|
|
+ * @throws \think\db\exception\DbException
|
|
|
|
|
+ * @throws \think\db\exception\ModelNotFoundException
|
|
|
|
|
+ */
|
|
|
|
|
+ public function pay()
|
|
|
|
|
+ {
|
|
|
|
|
+ $paySetting = Payment::getPaySetting();
|
|
|
|
|
+
|
|
|
|
|
+ return $this->renderSuccess(compact('paySetting'));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|