|
|
@@ -31,7 +31,7 @@ class ItemController extends Controller
|
|
|
|
|
|
public function actionMt()
|
|
|
{
|
|
|
- if (getenv('YII_ENV') != 'production') {
|
|
|
+ if (getenv('YII_ENV') == 'production') {
|
|
|
$mtMainId = 3923;
|
|
|
$ttMainId = 742;
|
|
|
} else {
|
|
|
@@ -43,7 +43,6 @@ class ItemController extends Controller
|
|
|
echo '已经有花材了';
|
|
|
exit();
|
|
|
}
|
|
|
- echo $ttMainId;die;
|
|
|
$classList = ItemClassClass::getAllByCondition(['mainId' => $ttMainId], null, '*', null, true);
|
|
|
if (empty($classList)) {
|
|
|
echo '没有找到天天鲜花的分类';
|