| 
									
										
										
										
											2021-11-18 17:57:04 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace app\model; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | use think\Collection; | 
					
						
							|  |  |  | use think\db\exception\DataNotFoundException; | 
					
						
							|  |  |  | use think\db\exception\DbException; | 
					
						
							|  |  |  | use think\db\exception\ModelNotFoundException; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * 充值记录 | 
					
						
							|  |  |  |  * Class Recharge | 
					
						
							|  |  |  |  * @package app\model | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | class Recharge extends Base | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     const state_off = 0;//未支付
 | 
					
						
							|  |  |  |     const state_on  = 1;//已支付
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     public function business() | 
					
						
							|  |  |  |     { | 
					
						
							| 
									
										
										
										
											2021-12-01 16:53:44 +08:00
										 |  |  |         return $this->hasOne(Business::class,"code","business_code"); | 
					
						
							| 
									
										
										
										
											2021-11-18 17:57:04 +08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2021-12-01 16:53:44 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-18 17:57:04 +08:00
										 |  |  | } |