Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View 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;
}
}