Yuki 在 2021-11-20 10:36 星期六 提交
使用 Acquia Dev Desktop 2 phpstorm 设置 xdebug 进行调试
开启 xdebug 扩展
打开 Acquia Dev Desktop 2 后 点击下图 进入设置

找到需要开启的php版本 点击 edit 进行编辑

找到如图所示的部分

Yuki 在 2020-11-10 16:47 星期二 提交
在使用 views_data_export 导出时.
如果数据是长数字 导出 xls 时会转换为科学计数法 , 如果数字是0开头会自动去掉 这样数据就对不上了
解决方案:
在views中重写结果,在数据外面套一个div 并使用 style 进行格式
<div style="mso-number-format:'\@';">[identifier]</div>
Yuki 在 2020-11-04 10:04 星期三 提交
<?php
namespace Drupal\ew_cargo_plan\Plugins;
use Drupal\ew_cargo_plan\Entity\EwCargoPlan;
use Drupal\ew_channel\Entity\EwChannel;
use Drupal\ew_product\Entity\EwProduct;
use Drupal\ew_product_stock\Entity\EwProductStock;
use FeedsParserResult;
use FeedsProcessor;
use FeedsSource;
class EwCargoPlanFeedsProcessor extends FeedsProcessor {
protected $channel_id = '';
protected $product_id = '';
public function getMappingTargets() {
$targets = parent::getMappingTargets();
$targets['id'] = [
'name' => t('ID'),
'optional_unique' => TRUE,