|
|
@ -153,27 +153,20 @@ class WithdrawController extends BaseController
|
|
|
|
* 整合数据,全部成功则支付成功,否则为支付中
|
|
|
|
* 整合数据,全部成功则支付成功,否则为支付中
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function poolCount($poolid){
|
|
|
|
public function poolCount($poolid){
|
|
|
|
$pool_id = $poolid;
|
|
|
|
$f = M("company_statement_info","tab_")->where("pool_id = {$poolid} AND pay_status <> 1")->find();
|
|
|
|
$CompanyInfo = M("company_statement_info","tab_");
|
|
|
|
|
|
|
|
if(count($pool_id) > 0){
|
|
|
|
|
|
|
|
foreach($pool_id as $k=>$v){
|
|
|
|
|
|
|
|
$f = $CompanyInfo->where("pool_id = {$v} AND pay_status <> 1")->find();
|
|
|
|
|
|
|
|
if(empty($f)){
|
|
|
|
if(empty($f)){
|
|
|
|
//全部完成
|
|
|
|
//全部完成
|
|
|
|
$this->setOneVerifyStatus(4,"payment",$v);
|
|
|
|
$this->setOneVerifyStatus(4,"payment",$poolid);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
//打款中
|
|
|
|
//打款中
|
|
|
|
$this->setOneVerifyStatus(3,"payment",$v);
|
|
|
|
$this->setOneVerifyStatus(3,"payment",$poolid);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected function setOneVerifyStatus($change_status,$op_pre,$id)
|
|
|
|
protected function setOneVerifyStatus($change_status,$op_pre,$id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$dbres = M("company_statement_pool","tab_")->field("id,verify_status,verify_log")->where("id = {$id}")->find();
|
|
|
|
$dbres = M("company_statement_pool","tab_")->field("id,verify_status,verify_log")->where("id = {$id}")->find();
|
|
|
|
$dbres['verify_log'] = json_decode($dbres['verify_log'],true);
|
|
|
|
$dbres['verify_log'] = json_decode($dbres['verify_log'],true);
|
|
|
|
$dbres['verify_log'][$op_pre.'_user']=$this->admininfo["mobile"];
|
|
|
|
$dbres['verify_log'][$op_pre.'_user']=$_SESSION['onethink_home']['promote_auth']['account'];
|
|
|
|
$dbres['verify_log'][$op_pre.'_time']=date("Y-m-d H:i:s");
|
|
|
|
$dbres['verify_log'][$op_pre.'_time']=date("Y-m-d H:i:s");
|
|
|
|
$dbres['verify_log'] = json_encode($dbres['verify_log']);
|
|
|
|
$dbres['verify_log'] = json_encode($dbres['verify_log']);
|
|
|
|
$dbres['verify_status']=$change_status;
|
|
|
|
$dbres['verify_status']=$change_status;
|
|
|
|