|
...
|
...
|
@@ -608,6 +608,8 @@ class PrivateController extends BaseController |
|
|
|
public function getExternalLink(Request $request)
|
|
|
|
{
|
|
|
|
$max_id = DB::table('gl_project_external_link_make')->where(['status' => 0])->max('id');
|
|
|
|
if (empty($max_id))
|
|
|
|
return $this->success();
|
|
|
|
$links = DB::table('gl_project_external_link_make')->where(['status' => 0])->where('id', '<=', $max_id)->pluck('external_link')->toArray();
|
|
|
|
DB::table('gl_project_external_link_make')->where(['status' => 0])->where('id', '<=', $max_id)->update(['status' => 1, 'updated_at' => date('Y-m-d H:i;s')]);
|
|
|
|
return $this->success($links);
|
...
|
...
|
|