From 2fd9348d70470b84e66f356377e86337c2a19e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=90?= Date: Mon, 24 Mar 2025 16:24:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(merchant):=20=E6=B7=BB=E5=8A=A0=E8=80=81?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E9=98=BF=E5=A5=87=E7=B4=A2=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E8=87=AA=E5=8A=A8=E5=8F=91=E5=8D=A1?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在自动发卡设置中添加老版本阿奇索选项 - 实现老版本阿奇索的卡密采购逻辑 - 优化码速达的消息订阅配置 - 修复自动发卡过程中的若干问题 --- app/channel/service/system/Core.php | 15 +- app/merchant/controller/Merchant.php | 6 +- app/merchant/view/merchant/autoCard.html | 5 +- app/openapi/controller/Kami91.php | 18 ++- app/openapi/controller/Test.php | 136 ++++++++++++++++++ app/openapi/controller/maSuDaApi/Order.php | 114 +++++++++------ .../kami91order/KamiOrderChanelNotify.php | 9 ++ 7 files changed, 236 insertions(+), 67 deletions(-) diff --git a/app/channel/service/system/Core.php b/app/channel/service/system/Core.php index 5810ee4..1d90983 100644 --- a/app/channel/service/system/Core.php +++ b/app/channel/service/system/Core.php @@ -147,14 +147,11 @@ class Core if (isset($this->channel['order_limit']) && $this->channel['order_limit'] > 0) { $status = -3; } - $state = $this->create($param['order'], '', $merchant_order, $param['cash'], '', $this->data, $response, $status, $account, $parent_order_id, $this->card_id, false); - if (!$state) { return '余额不足下单失败'; } - if ($status == 1) { #判断卡库提单,如果为卡库提单,则储存普通数据,不执行队列 @@ -162,10 +159,16 @@ class Core #当产品为cardbuy卡密采购,则搜索商户设置 $merchant = MerchantService::instance()->get($this->data['merchant']); if(isset($merchant['kami_status']) && $merchant['kami_status'] == 1 && $merchant['merchant_type'] != 1){ - $redis = RedisService::getInstance(); - $redis_key = 'Kami_wait_'.$param['order']; + if(isset($merchant['other_param']) && str_contains($merchant['other_param'], '"autoCardSoftware":"3"')){ + #"autoCardSoftware":"3" + $this->queue('submit', $this->data); + }else{ + $redis = RedisService::getInstance(); + $redis_key = 'Kami_wait_'.$param['order']; + + $redis->set($redis_key, $this->data, 6000); + } - $redis->set($redis_key, $this->data, 6000); }else{ $this->queue('submit', $this->data); diff --git a/app/merchant/controller/Merchant.php b/app/merchant/controller/Merchant.php index 8291835..855ff80 100644 --- a/app/merchant/controller/Merchant.php +++ b/app/merchant/controller/Merchant.php @@ -530,13 +530,15 @@ class Merchant extends Controller if (isset($maSuDa_message_config) && isset($other_param_arr_new['maSuDa_message_config'])){ #判断是否变化,进行消息修改 TODO + } $other_json = json_encode($other_param_arr_new); $up = MerchantService::instance()->db()->where(array('id' => $id))->update(['other_param'=>$other_json]); - if($up == false){ - $this->error('修改失败,请联系技术处理!'); +// return $up; + if(!$up){ + $this->error('修改失败,请核查是否未变动!请联系技术处理!'); }else{ $this->success('自动发货软件修改成功!', ''); } diff --git a/app/merchant/view/merchant/autoCard.html b/app/merchant/view/merchant/autoCard.html index 903a53f..4cded06 100644 --- a/app/merchant/view/merchant/autoCard.html +++ b/app/merchant/view/merchant/autoCard.html @@ -6,7 +6,7 @@ 自动发卡设置