diff --git a/app/api/controller/Gh.php b/app/api/controller/Gh.php index f714739d..8feb54d1 100644 --- a/app/api/controller/Gh.php +++ b/app/api/controller/Gh.php @@ -71,7 +71,7 @@ class Gh extends Api $ip = $_SERVER['REMOTE_ADDR']; } $orig_date_time = date("Y-m-d\TH:i:s"); - $mer_url = "https://dlh.hainings.com/api/gh/checkReturn"; + $mer_url = "https://dlh.hainings.com/index/index/localReturn"; $order_num = 3; $basic = $this->basic($user_id,$out,$money,$our,$user_msg,$type); $general1 = $this->general1($user_id,$out,$money,$other,$user_msg,$type); @@ -151,7 +151,8 @@ class Gh extends Api } // 查询回调记录 public function checkReturn($money=1,$type=""){ - Log::write('test_msg', 'info');die; + $aa = urldecode(file_get_contents("php:://input")); + Log::write($aa, 'test_aaa');die; $user_id = $this->user_id; $merchant = 70; //商户获取金额比例 $our = 5; //服务费 @@ -220,8 +221,8 @@ class Gh extends Api // 基本户 public function basic($user_id,$out,$money,$our,$user_msg,$type){ - $out2 = "dlh17314648899792"; - // $out2 = "dlh".time().$user_id."2"; + // $out2 = "dlh17314648899792"; + $out2 = "dlh".time().$user_id."2"; $data2['rec_num'] = "1"; $data2['seq_no'] = $out; $data2['sub_order_id'] = $out2; @@ -254,8 +255,8 @@ class Gh extends Api // 一般户1 public function general1($user_id,$out,$money,$other,$user_msg,$type){ - $out3 = "dlh17314648899793"; - // $out3 = "dlh".time().$user_id."3"; + // $out3 = "dlh17314648899793"; + $out3 = "dlh".time().$user_id."3"; $data3['rec_num'] = "2"; $data3['seq_no'] = $out; $data3['sub_order_id'] = $out3; @@ -287,8 +288,8 @@ class Gh extends Api } // 一般户2 public function general2($user_id,$out,$money,$user_billions,$user_msg){ - // $out4 = "dlh".time().$user_id."4"; - $out4 = "dlh17314648899794"; + $out4 = "dlh".time().$user_id."4"; + // $out4 = "dlh17314648899794"; $data4['rec_num'] = "3"; $data4['seq_no'] = $out; $data4['sub_order_id'] = $out4;