mirror of
				https://gitee.com/technical-laohu/mpay.git
				synced 2025-11-04 16:53:44 +08:00 
			
		
		
		
	更新代码结构
This commit is contained in:
		
							
								
								
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -9,4 +9,7 @@ extend/*
 | 
			
		||||
vendor/*
 | 
			
		||||
!vendor/vendor.zip
 | 
			
		||||
 | 
			
		||||
runtime/*
 | 
			
		||||
runtime/*
 | 
			
		||||
 | 
			
		||||
app/*
 | 
			
		||||
!app/controller/TestController.php
 | 
			
		||||
@@ -20,8 +20,4 @@ class IndexController
 | 
			
		||||
        View::assign('domain', \request()->domain());
 | 
			
		||||
        return View::fetch();
 | 
			
		||||
    }
 | 
			
		||||
    public function test()
 | 
			
		||||
    {
 | 
			
		||||
        return View::fetch();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -231,12 +231,12 @@ class PayController
 | 
			
		||||
        $Payclient = new $payclient_path($pay_config);
 | 
			
		||||
        // 获取支付明细
 | 
			
		||||
        $records = $Payclient->getOrderInfo($query);
 | 
			
		||||
        if ($records) {
 | 
			
		||||
        if ($records['code'] === 0) {
 | 
			
		||||
            // 提交收款记录
 | 
			
		||||
            $upres = $this->payHeart($records, $config);
 | 
			
		||||
            $upres = $this->payHeart($records['data'], $config);
 | 
			
		||||
            return $upres;
 | 
			
		||||
        } else {
 | 
			
		||||
            return json(['code' => 0, 'msg' => '查询空订单'], 320);
 | 
			
		||||
            return json(['code' => 0, 'msg' => $records['msg']], 320);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    // [定时任务]监听新订单,生成缓存
 | 
			
		||||
 
 | 
			
		||||
@@ -170,11 +170,11 @@ class PayManageController extends BaseController
 | 
			
		||||
        $Payclient = new $payclient_path($pay_config);
 | 
			
		||||
        // 获取支付明细
 | 
			
		||||
        $records = $Payclient->getOrderInfo($query);
 | 
			
		||||
        if ($records) {
 | 
			
		||||
        if ($records['code'] === 0) {
 | 
			
		||||
            // 收款流水
 | 
			
		||||
            return json(backMsg(0, '查询成功', $records));
 | 
			
		||||
            return json(backMsg(0, '查询成功', $records['data']));
 | 
			
		||||
        } else {
 | 
			
		||||
            return json(backMsg(1, '查询空订单'));
 | 
			
		||||
            return json(['code' => 1, 'msg' => $records['msg']]);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user