mirror of
https://github.com/zhamao-robot/go-cqhttp-adapter-plugin.git
synced 2026-07-09 09:45:38 +08:00
initial commit
This commit is contained in:
15
src/GocqRetcodeConverter.php
Normal file
15
src/GocqRetcodeConverter.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace GocqAdapter;
|
||||
|
||||
use OneBot\Util\Singleton;
|
||||
|
||||
class GocqRetcodeConverter
|
||||
{
|
||||
use Singleton;
|
||||
|
||||
public function convertRetCode11To12(int $retcode): int
|
||||
{
|
||||
return $retcode !== 0 ? 10000 : 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user