update database
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user