Giter Site home page Giter Site logo

Comments (5)

Luncher avatar Luncher commented on August 29, 2024 1

如果可以,帮忙提一个PR呀!

from alipay.

xcyxiner avatar xcyxiner commented on August 29, 2024
  • const isTest = process.env.NODE_ENV === 'test' 这个环境变量,有的框架就不是这个变量。。比如 loopback 的 只有 development 和 production 两个
  • 更换麻烦。。直接用脚本卸载了重新装。。再用sed 来替换。。。替换 isTest 中的ENV值和替换GETWAY 貌似差不了多少
npm uninstall -S alipay-mobile
npm i alipay-mobile -S
sed -i '' 's/var GETWAY = isTest ? _config2.default.ALIPAY_DEV_GETWAY : _config2.default.ALIPAY_GETWAY;/var GETWAY =  _config2.default.ALIPAY_DEV_GETWAY;/g' node_modules/alipay-mobile/lib/index.js

from alipay.

xc2f avatar xc2f commented on August 29, 2024

可以试一下cross-env

from alipay.

Luncher avatar Luncher commented on August 29, 2024

好的,thanks

from alipay.

Luncher avatar Luncher commented on August 29, 2024

@sfyr111 @xcyxiner 78b2ebc

改好了已经

from alipay.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.