|
|
@@ -14,6 +14,18 @@ use Yii;
|
|
|
class PtItemController extends Controller
|
|
|
{
|
|
|
|
|
|
+ //认证
|
|
|
+ public function actionAuthItem()
|
|
|
+ {
|
|
|
+ $relationList = PtItemCatRelateClass::getAllByCondition(['id>' => 0], null, '*', null, true);
|
|
|
+ if (!empty($relationList)) {
|
|
|
+ foreach ($relationList as $relation) {
|
|
|
+ $itemId = $relation->itemId;
|
|
|
+ PtItemClass::updateById($itemId, ['auth' => 1]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
//平台花材更新 ssh 20231125
|
|
|
public function actionUseNum()
|
|
|
{
|
|
|
@@ -28,15 +40,6 @@ class PtItemController extends Controller
|
|
|
$ptItem->save();
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- $relationList = PtItemCatRelateClass::getAllByCondition(['id>' => 0], null, '*', null, true);
|
|
|
- if (!empty($relationList)) {
|
|
|
- foreach ($relationList as $relation) {
|
|
|
- $itemId = $relation->itemId;
|
|
|
- PtItemClass::updateById($itemId, ['auth' => 1]);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
|
|
|
// ./yii pt-item/init
|