|
|
@ -318,9 +318,16 @@ class PaymentController extends BaseController
|
|
|
|
return json_encode($companyInfo,JSON_UNESCAPED_UNICODE);
|
|
|
|
return json_encode($companyInfo,JSON_UNESCAPED_UNICODE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//线上转线下
|
|
|
|
//线上转线下
|
|
|
|
public function setStatementPayTapy()
|
|
|
|
public function setStatementPayType()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$id = I("post.id",0);
|
|
|
|
$id = I("post.id",0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$oldInfo = M("company_statement_info","tab_")->field("id,company_info,remark")->where("id = {$id}")->find();
|
|
|
|
|
|
|
|
if(empty($oldInfo)){
|
|
|
|
|
|
|
|
$this->ajaxReturn(['status' =>0 ,'msg'=>'未找到此结算单信息','data'=>[]]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$company_info = json_decode($oldInfo['company_info'],true);
|
|
|
|
|
|
|
|
|
|
|
|
$PayStatementDB = M("pay_statement_info","tab_");
|
|
|
|
$PayStatementDB = M("pay_statement_info","tab_");
|
|
|
|
//判断线上打款
|
|
|
|
//判断线上打款
|
|
|
|
$sWhere = [
|
|
|
|
$sWhere = [
|
|
|
@ -333,8 +340,10 @@ class PaymentController extends BaseController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//删除打款
|
|
|
|
//删除打款
|
|
|
|
$PayStatementDB->where($sWhere)->delete();
|
|
|
|
$PayStatementDB->where($sWhere)->delete();
|
|
|
|
|
|
|
|
//获取自身
|
|
|
|
|
|
|
|
$remark = ($oldInfo['remark'] .'该打款由线上转为线下付款,原支付宝用户:'. $company_info['ali_user'].',支付宝账号为:'.$company_info['ali_account']);
|
|
|
|
//修改自身
|
|
|
|
//修改自身
|
|
|
|
$res = M("company_statement_info","tab_")->where("id = {$id}")->save(['verify_status' => 2, 'pay_check' => 0, 'pay_check_member_id' => 0, 'pay_check_time' => 0]);
|
|
|
|
$res = M("company_statement_info","tab_")->where("id = {$id}")->save(['verify_status' => 2, 'pay_check' => 0, 'pay_check_member_id' => 0, 'pay_check_time' => 0, 'remark' => $remark]);
|
|
|
|
if(empty($res)){
|
|
|
|
if(empty($res)){
|
|
|
|
$this->ajaxReturn(['status' =>0 ,'msg'=>'转换失败','data'=>[]]);
|
|
|
|
$this->ajaxReturn(['status' =>0 ,'msg'=>'转换失败','data'=>[]]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|