shish %!s(int64=3) %!d(string=hai) anos
pai
achega
e24284721d
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app-hd/controllers/MtController.php

+ 3 - 1
app-hd/controllers/MtController.php

@@ -39,7 +39,9 @@ class MtController extends PublicController
         }
         $retailData = $post['retail_data'];
         $retail = urldecode(urldecode($retailData));
-        $shopId = $retail['app_poi_code'] ?? 0;
+        $info = json_decode($retail);
+        $data = $info[0] ?? null;
+        $shopId = $data->app_poi_code ?? 0;
         $shop = ShopClass::getById($shopId, true);
         if (empty($shop)) {
             noticeUtil::push("美团添加商品,通知我们时出错了,没有找到门店", '15280215347');