提交 fa54726c 编写于 作者: Y yuenblue

aaa

上级 15453dbc
......@@ -8,6 +8,7 @@ use think\Model;
/**
* @mixin \think\Model
* @property string $title
* @property User user
*/
class Article extends Model
{
......
......@@ -4,6 +4,8 @@ namespace app\model;
use stdClass;
use think\Model;
use think\model\Collection;
enum UserState:int{
case Inactive=0;
case Activated=1;
......@@ -21,6 +23,7 @@ enum UserState:int{
* @property string password
* @property string email
* @property int status
* @property Collection articles
*/
final class User extends Model
{
......
......@@ -19,6 +19,19 @@ class DemoTest extends TestCase
{
assertTrue(true);
}
public function testRandom()
{
foreach (range(1,100) as $aa) {
echo $aa,PHP_EOL;
$bytes = random_bytes(5);
print bin2hex($bytes);
print PHP_EOL;
echo rand(1,1000),PHP_EOL;
}
// $bytes = random_bytes(5);
// print bin2hex($bytes);
// print PHP_EOL;
}
public function testLog(){
echo "aaaa";
echo "bbbb";
......
......@@ -46,8 +46,6 @@ class ModelTest extends TestCase
$uu = User::with([User::Articles])->hasWhere(User::Articles,$wh)->select();
print $uu;
}
public function testArticleContent()
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册