From 0fe03a6de8ac00f5544ab385090164dad9b88ee0 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 18 Sep 2023 16:02:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=BA=A4=E6=98=93=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Auth.php | 9 +++++++++ route/api.php | 1 + 2 files changed, 10 insertions(+) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 927eb2dc..aba91ddf 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -23,6 +23,7 @@ use app\common\repositories\user\UserSignRepository; use app\common\repositories\wechat\RoutineQrcodeRepository; use app\common\repositories\wechat\WechatUserRepository; use app\common\repositories\system\RelevanceRepository; +use app\common\repositories\system\CacheRepository; use app\common\repositories\system\merchant\MerchantIntentionRepository; use app\validate\api\ChangePasswordValidate; use app\validate\api\UserAuthValidate; @@ -1366,4 +1367,12 @@ class Auth extends BaseController Db::name('merchant')->where('mer_intention_id', $id)->where('status', 1)->update($data); return app('json')->success('同步成功'); } + + //获取交易申请协议 + public function businessAgree() + { + $repository = app()->make(CacheRepository::class); + $data = $repository->getResult('business_apply_agree'); + return app('json')->success($data); + } } diff --git a/route/api.php b/route/api.php index 3cd1c87b..45b7185a 100644 --- a/route/api.php +++ b/route/api.php @@ -24,6 +24,7 @@ Route::group('api/', function () { Route::any('app/version', 'api.Auth/appVersion'); Route::any('dotest', 'api.Auth/dotest'); Route::post('merchant/syncStatus/:id', 'api.Auth/merchantStatus'); + Route::get('business/agree', 'api.Auth/businessAgree'); Route::post('goods/take/:id', 'api.Auth/deliveryGoods'); Route::get('merchant/cate', 'api.Auth/merchantCate'); Route::get('order/statistics', 'api.Auth/orderStatistics');