- 🔭 I’m currently working on Vuejs, PHP, MySQL.
- 🌱 I’m currently learning Rust.
- 📫 Send me a message: [email protected]
If you like my work you may consider buying me a ☕
🙏 for reading!
Dcat Admin SKU扩展增强版
If you like my work you may consider buying me a ☕
🙏 for reading!
ErrorException
htmlspecialchars() expects parameter 1 to be string, array given (View: /home/vagrant/ad.ep.com/vendor/abbotton/dcat-sku-plus/resources/views/index.blade.php)
编辑时, 按附录中的数据格式带入后, 没有将扩展列的值带入.
{
"attrs": {
"长度": [
"110",
"120"
],
"颜色": [
"黑色",
"白色"
]
},
"sku": [
{
"长度": "110",
"颜色": "黑色",
"id": 2,
"images": null,
"rent_price": 10,
"deposit_price": 20,
"is_published": 0,
"stock": 100,
"created_at": "2022-09-26T10:49:01.000000Z",
"updated_at": "2022-09-26T10:49:01.000000Z"
},
{
"长度": "110",
"颜色": "白色",
"id": 3,
"images": null,
"rent_price": 0,
"deposit_price": 0,
"is_published": 0,
"stock": 0,
"created_at": "2022-09-26T10:49:01.000000Z",
"updated_at": "2022-09-26T10:49:01.000000Z"
},
{
"长度": "120",
"颜色": "黑色",
"id": 4,
"images": null,
"rent_price": 0,
"deposit_price": 0,
"is_published": 0,
"stock": 0,
"created_at": "2022-09-26T10:49:01.000000Z",
"updated_at": "2022-09-26T10:49:01.000000Z"
},
{
"长度": "120",
"颜色": "白色",
"id": 5,
"images": null,
"rent_price": 0,
"deposit_price": 0,
"is_published": 0,
"stock": 0,
"created_at": "2022-09-26T10:49:01.000000Z",
"updated_at": "2022-09-26T10:49:01.000000Z"
}
]
}
感谢您的付出
我sku字段用的json,上传组图pics的时候也会提交sku字段
column 'products.sku'. (SQL: update products
set pics
= [5,8,9], sku
= , products
.updated_at
= 2022-10-08 09:38:59 where id
= 1)
数据库迁移文件中,如果laravel版本在6或者6以下的 不能使用 $table->id() 要改为 $table->bigIncrements('id');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.