namespace frontend\controllers;
use yii\web\Controller;
use thinfellpthreads\PthreadsJiangSuYinHangCode;
class JiangSuCodeController extends Controller
{
public $ip2 = '122.114.228.54:11080';
public $iptype2 = 0;
public function actionIndex()
{
for ($xx = 1; $xx <= 3; $xx++) {
$requests[] = new PthreadsJiangSuYinHangCode($this->iptype2, $this->ip2);
}
foreach($requests as $thread) {
$thread->start();
}
foreach($requests as $index => $thread) {
$thread->join();
}
echo '处理完成';
}
}


在这个文件里面 use不了其他的方法 我在看站长大人 在Yii2上面的帖子 能运行 我这个就不行了