新增打款确认

master
chenzhi 4 years ago
parent 957c8bc2ba
commit a2fdc7c467

@ -424,8 +424,23 @@ class PaymentController extends BaseController
{ {
$id = $_REQUEST['id']; $id = $_REQUEST['id'];
$remark = $_REQUEST['remark']; $remark = $_REQUEST['remark'];
Vendor("Alipay2020/Fund");
$fund = new \Fund();
//
$dbres = M("company_statement_info","tab_")->where("id='{$id}'")->find();
$dbres['company_info'] = json_decode($v['company_info'],true);
if($dbres['pay_status'] != 1 && $dbres['verify_status'] == 1){
//执行打款
// $payres = json_decode( json_encode( $object),true);
$payres["remark"] = $remark;
$dbres["payinfo"] = json_encode($payres,JSON_UNESCAPED_UNICODE);
$dbres["pay_status"]=1;
$dbres["pay_type"]=2;
}
M("company_statement_info","tab_")->save($dbres);
$this->ajaxReturn(["success"=>"打款成功","data"=>[]]); $this->ajaxReturn(["success"=>"打款成功","data"=>[]]);
# code... # code...
} }
@ -441,10 +456,10 @@ class PaymentController extends BaseController
$f = $CompanyInfo->where("pool_id = {$v} AND pay_status <> 1")->find(); $f = $CompanyInfo->where("pool_id = {$v} AND pay_status <> 1")->find();
if(empty($f)){ if(empty($f)){
//全部完成 //全部完成
$this->setOneVerifyStatus(3,"payment",$v); $this->setOneVerifyStatus(4,"payment",$v);
}else{ }else{
//打款中 //打款中
$this->setOneVerifyStatus(4,"payment",$v); $this->setOneVerifyStatus(3,"payment",$v);
} }
} }
} }

@ -121,7 +121,7 @@
<td>{$vo.statement_num}</td> <td>{$vo.statement_num}</td>
<td>{$vo.statement_money}</td> <td>{$vo.statement_money}</td>
<td>{$vo.remark}</td> <td>{$vo.remark}</td>
<td><input type="text" class="txt paymentset" data-id="{$vo.id}" data-pool="{$vo.pool_id}" name="remark" value="{$vo.remark}" placeholder="打款备注"></td> <td><input type="text" class="txt paymentset" data-id="{$vo.id}" data-pool="{$vo.pool_id}" name="remark" value="" placeholder="打款备注"></td>
</tr> </tr>
</foreach> </foreach>

@ -1951,6 +1951,7 @@ CREATE TABLE `tab_company_statement_info` (
`pay_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '打款状态 -1:打款失败 0:未打款 1:打款成功', `pay_status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '打款状态 -1:打款失败 0:未打款 1:打款成功',
`pay_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付完成时间', `pay_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付完成时间',
`pay_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '打款类型 1提现 2线上打款 3线下打款', `pay_type` tinyint(2) NOT NULL DEFAULT '0' COMMENT '打款类型 1提现 2线上打款 3线下打款',
`pay_info` text NOT NULL DEFAULT '' COMMENT '打款信息',
`remark` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '备注', `remark` varchar(255) COLLATE utf8mb4_bin NOT NULL COMMENT '备注',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),

@ -55,12 +55,13 @@ class Fund {
$request->setBizContent(json_encode($arrData,JSON_UNESCAPED_UNICODE)); $request->setBizContent(json_encode($arrData,JSON_UNESCAPED_UNICODE));
$result = $aop->execute($request); $result = $aop->execute($request);
$responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response"; $responseNode = str_replace(".", "_", $request->getApiMethodName()) . "_response";
$resultCode = $result->$responseNode->code; return $result->$responseNode;
if(!empty($resultCode)&&$resultCode == 10000){ // $resultCode = $result->$responseNode->code;
return 0; // if(!empty($resultCode)&&$resultCode == 10000){
} else { // return 0;
return -1; // } else {
} // return -1;
// }
} }

Loading…
Cancel
Save