|
@@ -81,7 +81,7 @@ class Index extends Api
|
|
if (!$userdata) {
|
|
if (!$userdata) {
|
|
$returndata= 'no data';
|
|
$returndata= 'no data';
|
|
} else {
|
|
} else {
|
|
- // Db::startTrans();
|
|
|
|
|
|
+ Db::startTrans();
|
|
$userids = array_column($userdata, 'id');
|
|
$userids = array_column($userdata, 'id');
|
|
$userlink = db('userlink')
|
|
$userlink = db('userlink')
|
|
->join(['fa_link'], 'fa_userlink.link_id = fa_link.id')
|
|
->join(['fa_link'], 'fa_userlink.link_id = fa_link.id')
|