|
|
@@ -140,7 +140,7 @@ class BaseExport extends Component {
|
|
|
*/
|
|
|
public function getSavePath() {
|
|
|
$this->savePath = $this->pathCreator(date('Ymd', Date::nowTime()));
|
|
|
- return trim($this->savePath, __DS__);
|
|
|
+ return rtrim($this->savePath, __DS__);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -148,7 +148,8 @@ class BaseExport extends Component {
|
|
|
*/
|
|
|
public function getSaveBasePath() {
|
|
|
$this->saveBasePath = Yii::getAlias('@backendApi') . __DS__ . 'web' . __DS__ . 'upload' . __DS__ . \Yii::$app->params['excelLocalDir'];
|
|
|
- return trim($this->saveBasePath, __DS__);
|
|
|
+
|
|
|
+ return rtrim($this->saveBasePath, __DS__);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -410,6 +411,7 @@ class BaseExport extends Component {
|
|
|
'exportId' => $export->ID,
|
|
|
'userId' => $params['userId'],
|
|
|
]);
|
|
|
+
|
|
|
// 异步处理添加任务
|
|
|
$taskKey = \Yii::$app->swooleAsyncTimer->asyncHandle($params['action'], $extend);
|
|
|
if($taskKey === false){
|