You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
29
hyhproject/home2/controller/Imports.php
Executable file
29
hyhproject/home2/controller/Imports.php
Executable file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
namespace wstmart\home\controller;
|
||||
use wstmart\home\model\Imports as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 默认控制器
|
||||
*/
|
||||
class Imports extends Base{
|
||||
protected $beforeActionList = ['checkShopAuth'];
|
||||
/**
|
||||
* 数据导入首页
|
||||
*/
|
||||
public function index(){
|
||||
return $this->fetch('shops/import');
|
||||
}
|
||||
|
||||
/**
|
||||
* 上传商品数据
|
||||
*/
|
||||
public function importGoods(){
|
||||
$rs = WSTUploadFile();
|
||||
if(json_decode($rs)->status==1){
|
||||
$m = new M();
|
||||
$rss = $m->importGoods($rs);
|
||||
return $rss;
|
||||
}
|
||||
return $rs;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user