From 7d9c3f0a67c7ae20158f93631c249a3581337607 Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Wed, 25 Sep 2024 15:53:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=95=86=E5=93=81?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=BA1=202.=E6=8F=90=E7=8E=B0=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E8=AE=BE=E7=BD=AE=E4=B8=BA=E6=95=B4=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Billions.php | 4 ++-- app/api/logic/WithdrawLogic.php | 4 ++-- app/shop/logic/goods/GoodsLogic.php | 8 ++++++-- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/api/controller/Billions.php b/app/api/controller/Billions.php index 0559acbf..88f5d013 100755 --- a/app/api/controller/Billions.php +++ b/app/api/controller/Billions.php @@ -185,12 +185,12 @@ class Billions extends Api 'out_batch_no' => $withdraw_msg['batch_no'],//商户系统内部的商家批次单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一 'batch_name' => '提现至微信零钱',//该笔批量转账的名称 'batch_remark' => '提现至微信零钱,昵称:'.$user_msg['nickname'],//转账说明,UTF8编码,最多允许32个字符 - 'total_amount' => $withdraw_msg['left_money'] * 100,//转账金额单位为“分”。转账总金额必须与批次内所有明细转账金额之和保持一致,否则无法发起转账操作 + 'total_amount' => (int)($withdraw_msg['left_money'] * 100),//转账金额单位为“分”。转账总金额必须与批次内所有明细转账金额之和保持一致,否则无法发起转账操作 'total_num' => 1,//一个转账批次单最多发起三千笔转账。转账总笔数必须与批次内所有明细之和保持一致,否则无法发起转账操作 'transfer_detail_list' => [ [//发起批量转账的明细列表,最多三千笔 'out_detail_no' => $withdraw_msg['sn'],//商户系统内部区分转账批次单下不同转账明细单的唯一标识,要求此参数只能由数字、大小写字母组成 - 'transfer_amount' => $withdraw_msg['left_money'] * 100,//转账金额单位为分 + 'transfer_amount' => (int)($withdraw_msg['left_money'] * 100),//转账金额单位为分 'transfer_remark' => '提现至微信零钱',//单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符 'openid' => $userAuth['openid'],//openid是微信用户在公众号appid下的唯一用户标识(appid不同,则获取到的openid就不同),可用于永久标记一个用户 ]] diff --git a/app/api/logic/WithdrawLogic.php b/app/api/logic/WithdrawLogic.php index 7bce1caa..9094c1dd 100755 --- a/app/api/logic/WithdrawLogic.php +++ b/app/api/logic/WithdrawLogic.php @@ -341,12 +341,12 @@ class WithdrawLogic extends Logic 'out_batch_no' => $withdraw_msg['batch_no'],//商户系统内部的商家批次单号,要求此参数只能由数字、大小写字母组成,在商户系统内部唯一 'batch_name' => '提现至微信零钱',//该笔批量转账的名称 'batch_remark' => '提现至微信零钱,昵称:'.$user_msg['nickname'],//转账说明,UTF8编码,最多允许32个字符 - 'total_amount' => $withdraw_msg['left_money'] * 100,//转账金额单位为“分”。转账总金额必须与批次内所有明细转账金额之和保持一致,否则无法发起转账操作 + 'total_amount' => (int)($withdraw_msg['left_money'] * 100),//转账金额单位为“分”。转账总金额必须与批次内所有明细转账金额之和保持一致,否则无法发起转账操作 'total_num' => 1,//一个转账批次单最多发起三千笔转账。转账总笔数必须与批次内所有明细之和保持一致,否则无法发起转账操作 'transfer_detail_list' => [ [//发起批量转账的明细列表,最多三千笔 'out_detail_no' => $withdraw_msg['sn'],//商户系统内部区分转账批次单下不同转账明细单的唯一标识,要求此参数只能由数字、大小写字母组成 - 'transfer_amount' => $withdraw_msg['left_money'] * 100,//转账金额单位为分 + 'transfer_amount' => (int)($withdraw_msg['left_money'] * 100),//转账金额单位为分 'transfer_remark' => '提现至微信零钱',//单条转账备注(微信用户会收到该备注),UTF8编码,最多允许32个字符 'openid' => $userAuth['openid'],//openid是微信用户在公众号appid下的唯一用户标识(appid不同,则获取到的openid就不同),可用于永久标记一个用户 ]] diff --git a/app/shop/logic/goods/GoodsLogic.php b/app/shop/logic/goods/GoodsLogic.php index b7ffdb0b..89383007 100755 --- a/app/shop/logic/goods/GoodsLogic.php +++ b/app/shop/logic/goods/GoodsLogic.php @@ -462,7 +462,9 @@ class GoodsLogic extends Logic } Goods::where(['id' => $post['goods_id']])->update($data); - $contact = Goodscontact::where(['goods_id' => $post['goods_id']])->select(); + $contact = Goodscontact::where(['goods_id' => $post['goods_id']]) + ->where("gzhuser_state",1) + ->select(); if(count($contact)>0){ foreach($contact as $key=>$value){ $d = [ @@ -543,7 +545,9 @@ class GoodsLogic extends Logic GoodsItem::where(['goods_id' => $post['goods_id']])->update($data); $gitm = GoodsItem::where(['goods_id' => $post['goods_id']])->find(); if($gitm!=null){ - $gwholesale = Goodswholesale::where(['item_id' => $gitm['id']])->select(); + $gwholesale = Goodswholesale::where(['item_id' => $gitm['id']]) + ->where("w_state",1) + ->select(); if(count($gwholesale)>0){ foreach($gwholesale as $key=>$value){ Goodswholesale::where(['w_id' => $value['w_id']])->