update database

This commit is contained in:
2020-12-09 14:45:49 +07:00
parent ee3c869d71
commit 24e3347d43
4 changed files with 17 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ use Yii;
* @property string $image
* @property int $status
* @property string $remark
* @property string $confidence
*/
class CaptureLogs extends \yii\db\ActiveRecord {
@@ -29,7 +30,7 @@ class CaptureLogs extends \yii\db\ActiveRecord {
public function rules() {
return [
[['staff_id', 'time', 'status'], 'integer'],
[['image', 'remark'], 'string'],
[['image', 'remark', 'confidence'], 'string'],
];
}
@@ -44,7 +45,8 @@ class CaptureLogs extends \yii\db\ActiveRecord {
'status' => 'Status',
'remark' => 'Remark',
'staff_name' => "Name",
'staff_image' => "Registration Image"
'staff_image' => "Registration Image",
'confidence' => 'Confidence'
];
}
@@ -54,7 +56,8 @@ class CaptureLogs extends \yii\db\ActiveRecord {
'time' => $data['Time'],
'image' => $data["Image"],
'status' => 0,
'remark' => ''
'remark' => '',
'confidence' => $data["Confidence"]
], '');
if ($r) {
try {