Exemple #1
0
 /**
  * 提现查询接口
  * @param $requestid  请求id
  * @param $ybdrawflowid 易宝订单号
  * @return bool
  * @throws ErrorException
  */
 public static function drawrecord($requestid, $ybdrawflowid)
 {
     $pay = new yeepayClass();
     $respond = $pay->withdrawQuery($requestid, $ybdrawflowid);
     if (is_array($respond) && $respond['requestid'] == $requestid && $respond['ybdrawflowid'] == $ybdrawflowid) {
         $status = $respond['status'];
         //
         $info = Withdraw::findOne(['requestid' => $requestid, 'ybdrawflowid' => $ybdrawflowid, 'status' => yeepay::CONFIRM]);
         if ($info) {
             if ($status == "SUCCESS") {
                 return true;
             } elseif ($status == "REFUND") {
             }
         }
     } else {
         throw new ErrorException($respond);
     }
 }