mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update telegram & user edit
This commit is contained in:
		| @@ -47,13 +47,7 @@ class UserController extends Controller | |||||||
|             abort(500, '参数错误'); |             abort(500, '参数错误'); | ||||||
|         } |         } | ||||||
|         return response([ |         return response([ | ||||||
|             'data' => User::select([ |             'data' => User::find($request->input('id')) | ||||||
|                 'email', |  | ||||||
|                 'u', |  | ||||||
|                 'd', |  | ||||||
|                 'transfer_enable', |  | ||||||
|                 'expired_at' |  | ||||||
|             ])->find($request->input('id')) |  | ||||||
|         ]); |         ]); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -83,7 +83,7 @@ class TelegramController extends Controller | |||||||
|         $telegramService = new TelegramService(); |         $telegramService = new TelegramService(); | ||||||
|         $commands = [ |         $commands = [ | ||||||
|             '/bind 订阅地址 - 绑定你的' . config('v2board.app_name', 'V2Board') . '账号', |             '/bind 订阅地址 - 绑定你的' . config('v2board.app_name', 'V2Board') . '账号', | ||||||
|             '/traffic 查询流量' |             '/traffic - 查询流量信息' | ||||||
|         ]; |         ]; | ||||||
|         $text = implode(PHP_EOL, $commands); |         $text = implode(PHP_EOL, $commands); | ||||||
|         $telegramService->sendMessage($msg->chat_id, "你可以使用以下命令进行操作:\n\n$text", 'markdown'); |         $telegramService->sendMessage($msg->chat_id, "你可以使用以下命令进行操作:\n\n$text", 'markdown'); | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								public/assets/admin/umi.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								public/assets/admin/umi.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user