Commit a13d496f authored by sugar's avatar sugar

提现

parent 7198fbee
......@@ -456,7 +456,10 @@ class WXPayConstants
$result = self::https_request($url, json_encode($data), $token); //发送请求
$result_arr = json_decode($result, true);
if (!isset($result_arr['create_time'])) { //批次受理失败
throw new \Exception($result_arr['message']);
Log::write("提现异常:" . $result_arr['message']);
$error->code = -3;
$error->msg = $result_arr['message'];
return $error;
}
Withdraw::where(['cash_sn' =>$out_trade_no])->update(['out_batch_no' =>$data['out_batch_no']]);//更新商家批次单号
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment