Example #1
0
 public static function sendGMCmd1($data, $host, $port, $toJson = true)
 {
     $gm = new \ServerApi();
     $sdata = $toJson ? json_encode($data) : $data;
     $result = $gm->sendCommonCmd($host, $port, $sdata, \ServerApi::PT_GET_QQ_POWER);
     return $result;
 }
Example #2
0
 public static function sendGMCmd($data, $host, $port, $toJson = true)
 {
     $gm = new \ServerApi();
     $sdata = $toJson ? json_encode($data) : $data;
     $result = $gm->sendCommonCmd($host, $port, $sdata, \ServerApi::YUN_CHANGE_TO_GOLD);
     return $result;
 }