...
|
...
|
@@ -3,6 +3,8 @@ |
|
|
namespace app\admin\controller;
|
|
|
|
|
|
use app\common\controller\Backend;
|
|
|
use app\common\controller\Resource;
|
|
|
use think\Db;
|
|
|
|
|
|
/**
|
|
|
* 学生管理
|
...
|
...
|
@@ -180,9 +182,9 @@ class Study extends Backend |
|
|
$result = $this->model->allowField(true)->save($params);
|
|
|
$id = $this->model->id;
|
|
|
$unique = time();
|
|
|
$brpath = Resource::StudyBar($unique);
|
|
|
//$brpath = Resource::StudyBar($unique);
|
|
|
$time = date('YmdHi',time());
|
|
|
$this->model->save(['barcode'=>$brpath,'sno'=>$time,'unique'=>$time],['id'=>$id]);
|
|
|
$this->model->save(['sno'=>$time,'unique'=>time()],['id'=>$id]);
|
|
|
Db::commit();
|
|
|
} catch (ValidateException|PDOException|Exception $e) {
|
|
|
Db::rollback();
|
...
|
...
|
|