Merge branch 'feature/ticket' into develop
This commit is contained in:
@@ -31,7 +31,7 @@ class TicketController extends BaseController
|
|||||||
return $this->success($result);
|
return $this->success($result);
|
||||||
// return $this->success($this->page($result));
|
// return $this->success($this->page($result));
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return $this->error($e->getMessage().' '.$e->getLine().' '.$e->getFile().' '.$e->getTraceAsString());
|
return $this->error($e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ namespace app\ticket\service;
|
|||||||
use app\queue\translation\service\TranslationService;
|
use app\queue\translation\service\TranslationService;
|
||||||
use app\queue\utils\Translat;
|
use app\queue\utils\Translat;
|
||||||
use app\ticket\logic\CategorieLogic;
|
use app\ticket\logic\CategorieLogic;
|
||||||
|
use app\ticket\model\CategorieTranslation;
|
||||||
use support\Db;
|
use support\Db;
|
||||||
use support\exception\BusinessException;
|
use support\exception\BusinessException;
|
||||||
|
|
||||||
@@ -69,10 +70,17 @@ class CategorieService
|
|||||||
|
|
||||||
$result = (new CategorieLogic())->edit($data);
|
$result = (new CategorieLogic())->edit($data);
|
||||||
|
|
||||||
(new TranslationService())->queueTranslations(
|
// (new TranslationService())->queueTranslations(
|
||||||
'ticket_categorie',
|
// 'ticket_categorie',
|
||||||
$data['id'],
|
// $data['id'],
|
||||||
$sourceLocale,
|
// $sourceLocale,
|
||||||
|
// $traitsourceFields
|
||||||
|
// );
|
||||||
|
CategorieTranslation::updateOrCreate(
|
||||||
|
[
|
||||||
|
'model_id' => $data['id'],
|
||||||
|
'locale' => $sourceLocale,
|
||||||
|
],
|
||||||
$traitsourceFields
|
$traitsourceFields
|
||||||
);
|
);
|
||||||
Db::commit();
|
Db::commit();
|
||||||
|
|||||||
Reference in New Issue
Block a user