|
@@ -1509,6 +1509,16 @@ class OrdersController extends Controller
|
|
if (isset($res->nickname) && !empty($res->nickname)) {
|
|
if (isset($res->nickname) && !empty($res->nickname)) {
|
|
return $res->nickname;
|
|
return $res->nickname;
|
|
}
|
|
}
|
|
|
|
+ try{
|
|
|
|
+ $official = DB::table('official_accounts')
|
|
|
|
+ ->where('distribution_channel_id', $distribution_channel_id)
|
|
|
|
+ ->where('is_auth',1)
|
|
|
|
+ ->orderBy('id','desc')
|
|
|
|
+ ->select('nickname')->first();
|
|
|
|
+ if ($official && isset($official->nickname)) {
|
|
|
|
+ return $official->nickname;
|
|
|
|
+ }
|
|
|
|
+ }catch (\Exception $e){}
|
|
return '';
|
|
return '';
|
|
}
|
|
}
|
|
|
|
|