...
|
...
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
namespace app\admin\library\traits;
|
|
|
|
|
|
use app\admin\model\User;
|
|
|
trait Backend
|
|
|
{
|
|
|
|
...
|
...
|
@@ -73,7 +74,7 @@ trait Backend |
|
|
{
|
|
|
if ($this->request->isPost()) {
|
|
|
$params = $this->request->post("row/a");
|
|
|
$host = 'http://feipin.w.brotop.cn';
|
|
|
$host = User::DOMAIN;
|
|
|
if(isset($params['image']) && !empty($params['image'])){
|
|
|
$params['image'] = $host.$params['image'];
|
|
|
}
|
...
|
...
|
@@ -130,7 +131,7 @@ trait Backend |
|
|
if ($this->request->isPost()) {
|
|
|
$params = $this->request->post("row/a");
|
|
|
if ($params) {
|
|
|
$host = 'http://feipin.w.brotop.cn';
|
|
|
$host = User::DOMAIN;
|
|
|
if(isset($params['image']) && !empty($params['image'])){
|
|
|
if(strpos($params['image'],$host) !== false){
|
|
|
//true
|
...
|
...
|
|