@@ -20,8 +20,8 @@ class HdController extends BaseController
if (empty($hd)) {
util::fail('没有花店信息');
}
- if ($hd['shopId'] != $this->shopId) {
- util::fail('花店信息缺失');
+ if ($hd['userId'] != $this->userId) {
+ util::fail('不是你的店');
$shortAvatar = !empty($val['avatar']) ? $val['avatar'] : 'hhb_small.png';
$smallAvatar = imgUtil::groupImg($shortAvatar) . "?x-oss-process=image/resize,m_fill,h_130,w_130";
@@ -40,7 +40,7 @@ class OrderController extends BaseController
util::fail('无效的花店');
- if ($hd->shopId != $this->shopId) {
+ if ($hd->userId != $this->userId) {
util::fail('不是你的店铺');
$where['hdId'] = $id;
@@ -13,6 +13,7 @@ class SettleController extends BaseController
//创建新的结账单 ssh 202
public function actionCreateOrder()
{
+ $post = Yii::$app->request->post();
util::complete('操作成功');