|
@@ -11,12 +11,17 @@ class Manage
|
|
|
{
|
|
|
$info = Dever::db('shop/sell_order')->one($id);
|
|
|
|
|
|
- $user = Dever::db('passport/user')->one($info['uid']);
|
|
|
+ if ($info['uid'] && $info['uid'] > 0) {
|
|
|
+ $user = Dever::db('passport/user')->one($info['uid']);
|
|
|
|
|
|
- $result = $user['username'];
|
|
|
- if ($info['mobile']) {
|
|
|
- $result .= '('.$info['mobile'].')';
|
|
|
+ $result = $user['username'];
|
|
|
+ if ($info['mobile']) {
|
|
|
+ $result .= '('.$info['mobile'].')';
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ $result = $info['mobile'];
|
|
|
}
|
|
|
+
|
|
|
return $result;
|
|
|
}
|
|
|
|