FastMovieAI 二开基线 v1.0 (完整源码)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\control\app\model;
|
||||
|
||||
use app\model\Basic;
|
||||
|
||||
class PluginChannelsRole extends Basic
|
||||
{
|
||||
public function getRuleAttr($value)
|
||||
{
|
||||
if (empty($value)) {
|
||||
return '';
|
||||
}
|
||||
return json_decode($value, true);
|
||||
}
|
||||
public function setRuleAttr($value)
|
||||
{
|
||||
if (empty($value)) {
|
||||
return '';
|
||||
}
|
||||
return json_encode($value, JSON_UNESCAPED_UNICODE);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user