|
|
@@ -14,11 +14,12 @@ class HdController extends BaseController
|
|
|
{
|
|
|
$user = $this->user;
|
|
|
if (empty($user)) {
|
|
|
- util::fail('没有信息');
|
|
|
+ util::success(['hd' => $this->shop]);
|
|
|
+ } else {
|
|
|
+ $respond = CustomClass::buildRelation($this->shop, $user);
|
|
|
+ $hd = $respond['hd'];
|
|
|
+ util::success(['hd' => $hd]);
|
|
|
}
|
|
|
- $respond = CustomClass::buildRelation($this->shop, $user);
|
|
|
- $hd = $respond['hd'];
|
|
|
- util::success(['hd' => $hd]);
|
|
|
}
|
|
|
|
|
|
public function actionList()
|