From 9d608716c623d168d93d9c8f81b3d45a26a90f8d Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Wed, 13 Sep 2023 20:51:05 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=95=86=E6=88=B7=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/adminapi/logic/ShopContractLogic.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/adminapi/logic/ShopContractLogic.php b/app/adminapi/logic/ShopContractLogic.php index 040f3ea3b..75f204287 100644 --- a/app/adminapi/logic/ShopContractLogic.php +++ b/app/adminapi/logic/ShopContractLogic.php @@ -223,9 +223,15 @@ class ShopContractLogic extends BaseLogic $res = app(JunziqianController::class)->SigningLink($v); if ($res->success == true) { if ($v['type'] == 'party_a') { - $url['party_a'] =$res->data; + $url['a'] =$res->data; } else { - $url['party_b'] =$res->data; + $url['b'] =$res->data; + } + if ($v['type'] == 'party_a') { + $v['type'] = 'a'; + } + if ($v['type'] == 'party_b') { + $v['type'] = 'b'; } //发送短信 $sms = [ @@ -236,7 +242,6 @@ class ShopContractLogic extends BaseLogic 'scene' => 'WQ' ]; $result = SmsLogic::contractUrl($sms); - if ($result != true) { return self::setError(SmsLogic::getError()); }