|
|
@@ -47,8 +47,8 @@ class DeliveryController extends BaseController
|
|
|
'didi' => ['name' => '滴滴', 'logo' => '🚗'],
|
|
|
'uu' => ['name' => 'UU跑腿', 'logo' => '🛵']
|
|
|
];
|
|
|
- $mainId = $this->mainId;
|
|
|
- $allDeliveries = DeliveryAuthTokenClass::getAllByCondition(['mainId' => $mainId]);
|
|
|
+
|
|
|
+ $allDeliveries = DeliveryAuthTokenClass::getAllByCondition(['mainId' => $this->mainId]);
|
|
|
foreach ($allDeliveries as $d) {
|
|
|
$item = [
|
|
|
'id' => $d['platform'],
|
|
|
@@ -79,9 +79,6 @@ class DeliveryController extends BaseController
|
|
|
case 'fengniao':
|
|
|
$Auth->fengniaoAuth($mainId);
|
|
|
break;
|
|
|
- case 'dada':
|
|
|
- $Auth->dadaAuth($mainId);
|
|
|
- break;
|
|
|
case 'shunfeng':
|
|
|
$Auth->shunfengAuth($mainId);
|
|
|
break;
|
|
|
@@ -123,7 +120,7 @@ class DeliveryController extends BaseController
|
|
|
|
|
|
$ret = DeliveryAuthTokenClass::deleteByCondition(['mainId' => $this->mainId, 'platform' => $platform]);
|
|
|
if ($ret > 0) {
|
|
|
- util::success(['message' => '取消授权成功']);
|
|
|
+ util::success([], '取消授权成功');
|
|
|
} else {
|
|
|
util::fail('取消授权失败');
|
|
|
}
|
|
|
@@ -140,7 +137,12 @@ class DeliveryController extends BaseController
|
|
|
return $this->asJson($cities);
|
|
|
}
|
|
|
|
|
|
- // 查询开通城市
|
|
|
+ /**
|
|
|
+ * @deprecated
|
|
|
+ *
|
|
|
+ * 查询开通城市
|
|
|
+ * @return array
|
|
|
+ */
|
|
|
public function actionOpenCitiesLists()
|
|
|
{
|
|
|
$platform = Yii::$app->request->get('platform');
|