先上一下全部代码,嫌太多可以看下面的 public static $online = [];//用来记录在线用户 public function index() { $context = array( 'ssl' => array( 'local_cert' => $_SERVER['DOCUMENT_ROOT']....