Example #1
0
 /**
  * 还款
  * @param deal $deal  标的数据
  * @param array $repaylist  还款列表
  * @param int $deal_repay_id  还款计划ID
  * @param int $MerCode  商户ID
  * @param string $cert_md5 
  * @param string $post_url
  * @return string
  */
 function RepaymentNewTrade($deal, $repaylist, $deal_repay_id)
 {
     require_once APP_ROOT_PATH . 'system/collocation/ips/RepaymentNewTrade.php';
     return RepaymentNewTrade($deal, $repaylist, $deal_repay_id, $this->MerCode, $this->cert_md5, $this->post_url);
 }
Example #2
0
 /**
  * 还款
  * @param deal $deal  标的数据
  * @param array $repaylist  还款列表
  * @param int $deal_repay_id  还款计划ID
  * @param int $MerCode  商户ID
  * @param string $cert_md5 
  * @param string $post_url
  * @return string
  */
 function RepaymentNewTrade($deal, $repaylist, $deal_repay_id)
 {
     require_once APP_ROOT_PATH . 'system/collocation/baofoo/RepaymentNewTrade.php';
     $pErrMsg = RepaymentNewTrade($this->cfg, $deal, $repaylist, $deal_repay_id, $this->post_url);
     //http://p2p.fanwe.net/member.php?ctl=uc_deal&act=quick_refund&id=35400
     //http://p2p.fanwe.net/member.php?ctl=uc_deal&act=refdetail&id=35401
     $deal_status = $GLOBALS['db']->getOne("select deal_status from " . DB_PREFIX . "deal where id = " . intval($deal['id']));
     $url = '';
     if ($deal_status == 4) {
         $url = SITE_DOMAIN . APP_ROOT . '/member.php?ctl=uc_deal&act=quick_refund&id=' . $deal['id'];
     } else {
         if ($deal_status == 5) {
             $url = SITE_DOMAIN . APP_ROOT . '/member.php?ctl=uc_deal&act=refdetail&id=' . $deal['id'];
         } else {
             $url = SITE_DOMAIN . APP_ROOT;
         }
     }
     showIpsInfo($pErrMsg, $url);
 }
Example #3
0
 /**
  * 还款
  * @param deal $deal  标的数据
  * @param array $repaylist  还款列表
  * @param int $deal_repay_id  还款计划ID
  * @param int $MerCode  商户ID
  * @param string $cert_md5 
  * @param string $post_url
  * @return string
  */
 function RepaymentNewTrade($deal, $repaylist, $deal_repay_id)
 {
     require_once APP_ROOT_PATH . 'system/collocation/yeepay/RepaymentNewTrade.php';
     return RepaymentNewTrade($deal, $repaylist, $deal_repay_id, $this->platformNo, $this->post_url);
 }