1.添加了商品状态为1

2.提现金额设置为整数
This commit is contained in:
xucong 2024-09-25 15:53:22 +08:00
parent 139bb7d2ac
commit 7d9c3f0a67
3 changed files with 10 additions and 6 deletions

@ -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就不同),可用于永久标记一个用户
]]

@ -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就不同),可用于永久标记一个用户
]]

@ -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']])->