|
@@ -21,11 +21,11 @@ class Api
|
|
|
if (!$user) {
|
|
|
$user['uid'] = $uid;
|
|
|
$user['index'] = 1;
|
|
|
- $user['question_total'] = Dever::db('survey/info')->total(array('product_id' => $product_id));
|
|
|
$user['product_id'] = $product_id;
|
|
|
$user['status'] = 2;
|
|
|
$user['id'] = Dever::db('survey/user')->insert($user);
|
|
|
}
|
|
|
+ $user['question_total'] = Dever::db('survey/info')->total(array('product_id' => $product_id));
|
|
|
|
|
|
$result['user'] = $user;
|
|
|
if ($page_number > 0) {
|